diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2018-08-17 22:36:31 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2018-08-17 22:36:31 +0200 |
commit | 1cb2f82a23ee4001f3136452dae8adb342162362 (patch) | |
tree | cda8116264f6b2f9460e24447d2c42205bf1f042 | |
parent | Fix a cppcheck warning. (diff) | |
download | apache2-1cb2f82a23ee4001f3136452dae8adb342162362.tar.xz apache2-1cb2f82a23ee4001f3136452dae8adb342162362.zip |
Fix a cppcheck warning.
Remove some dead code. '!r->content_languages' is known to be true at this point.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1838285 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/http/mod_mime.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 28c53be132..03d1c4110b 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -989,9 +989,7 @@ static int find_ct(request_rec *r) if (!r->content_languages && conf->default_language) { const char **new; - if (!r->content_languages) { - r->content_languages = apr_array_make(r->pool, 2, sizeof(char *)); - } + r->content_languages = apr_array_make(r->pool, 2, sizeof(char *)); new = (const char **)apr_array_push(r->content_languages); *new = conf->default_language; } |