From: Christophe Jaillet Date: Sun, 15 Dec 2013 10:23:07 +0000 (+0000) Subject: Ease logic around 'ap_getword_conf' and drop useless line of code. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b66175976e566f68322af5d873775476585828f;p=thirdparty%2Fapache%2Fhttpd.git Ease logic around 'ap_getword_conf' and drop useless line of code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551009 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/metadata/mod_expires.c b/modules/metadata/mod_expires.c index 2ef3d89953a..049cfc22509 100644 --- a/modules/metadata/mod_expires.c +++ b/modules/metadata/mod_expires.c @@ -267,10 +267,7 @@ static char *check_code(apr_pool_t *p, const char *code, char **real_code) /* */ word = ap_getword_conf(p, &code); - if (word[0]) { - /* do nothing */ - } - else { + if (word[0] == '\0') { return apr_pstrcat(p, "bad expires code, missing ", NULL); }