From: Christophe Jaillet Date: Sun, 15 Dec 2013 10:28:58 +0000 (+0000) Subject: 'ap_getword_conf' can not return NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7657b8afdeb8025e15d4b56685b8b4813adefee3;p=thirdparty%2Fapache%2Fhttpd.git 'ap_getword_conf' can not return NULL git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551011 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_dir.c b/modules/mappers/mod_dir.c index 4364ff95515..9707ad50bec 100644 --- a/modules/mappers/mod_dir.c +++ b/modules/mappers/mod_dir.c @@ -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;