From 616caeceaecf6dc3a8bd10fb977d3ecdb49c4d09 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sun, 15 Dec 2013 10:28:58 +0000 Subject: [PATCH] '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 --- modules/mappers/mod_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0