Commit b59b83a4 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

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
parent b0caea6e
Loading
Loading
Loading
Loading
+0 −2
Changes for modules/http/mod_mime.c: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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 *));
        }
        new = (const char **)apr_array_push(r->content_languages);
        *new = conf->default_language;
    }