diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2013-12-15 11:23:07 +0100 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2013-12-15 11:23:07 +0100 |
commit | 9bda8db76496e9a9cdb88b291b54067fcdf63f4e (patch) | |
tree | 83362a152f2d061e6f7a8e70b35128084d1ff716 /modules | |
parent | 'ap_getword_conf' does not return NULL but an empty string if nothing could b... (diff) | |
download | apache2-9bda8db76496e9a9cdb88b291b54067fcdf63f4e.tar.xz apache2-9bda8db76496e9a9cdb88b291b54067fcdf63f4e.zip |
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/metadata/mod_expires.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/metadata/mod_expires.c b/modules/metadata/mod_expires.c index 2ef3d89953..049cfc2250 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) /* <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); } |