]> granicus.if.org Git - apache/commitdiff
'ap_getword_conf' can not return NULL
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 15 Dec 2013 10:28:58 +0000 (10:28 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 15 Dec 2013 10:28:58 +0000 (10:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551011 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_dir.c

index 4364ff955152bdfcc53d7d93e7772ef6e11d27c0..9707ad50bec739a6299ccee6f25aee67098992ae 100644 (file)
@@ -66,7 +66,7 @@ static const char *add_index(cmd_parms *cmd, void *dummy, const char *arg)
             /* peek to see if "disabled" is first in a series of arguments */
             const char *tt = t;
             const char *ww = ap_getword_conf(cmd->temp_pool, &tt);
-            if (ww == NULL || !ww[0]) {
+            if (ww[0] == '\0') {
                /* "disabled" is first, and alone */
                apr_array_clear(d->index_names); 
                break;