httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1551011 - /httpd/httpd/trunk/modules/mappers/mod_dir.c
Date Sun, 15 Dec 2013 10:28:59 GMT
Author: jailletc36
Date: Sun Dec 15 10:28:58 2013
New Revision: 1551011

URL: http://svn.apache.org/r1551011
Log:
'ap_getword_conf' can not return NULL

Modified:
    httpd/httpd/trunk/modules/mappers/mod_dir.c

Modified: httpd/httpd/trunk/modules/mappers/mod_dir.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_dir.c?rev=1551011&r1=1551010&r2=1551011&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_dir.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_dir.c Sun Dec 15 10:28:58 2013
@@ -66,7 +66,7 @@ static const char *add_index(cmd_parms *
             /* 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;



Mime
View raw message