httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1551009 - /httpd/httpd/trunk/modules/metadata/mod_expires.c
Date Sun, 15 Dec 2013 10:23:08 GMT
Author: jailletc36
Date: Sun Dec 15 10:23:07 2013
New Revision: 1551009

URL: http://svn.apache.org/r1551009
Log:
Ease logic around 'ap_getword_conf' and drop useless line of code.

Modified:
    httpd/httpd/trunk/modules/metadata/mod_expires.c

Modified: httpd/httpd/trunk/modules/metadata/mod_expires.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_expires.c?rev=1551009&r1=1551008&r2=1551009&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_expires.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_expires.c Sun Dec 15 10:23:07 2013
@@ -267,10 +267,7 @@ static char *check_code(apr_pool_t *p, c
         /* <type>
          */
         word = ap_getword_conf(p, &code);
-        if (word[0]) {
-            /* do nothing */
-        }
-        else {
+        if (word[0] == '\0') {
             return apr_pstrcat(p, "bad expires code, missing <type>", NULL);
         }
 



Mime
View raw message