From: Christophe Jaillet Date: Sun, 15 Dec 2013 10:28:58 +0000 (+0000) Subject: 'ap_getword_conf' can not return NULL X-Git-Tag: 2.5.0-alpha~4773 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=616caeceaecf6dc3a8bd10fb977d3ecdb49c4d09;p=apache '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 4364ff9551..9707ad50be 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;