projects
/
apache
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6625c31
)
Ease logic around 'ap_getword_conf' and drop useless line of code.
author
Christophe Jaillet
<jailletc36@apache.org>
Sun, 15 Dec 2013 10:23:07 +0000
(10:23 +0000)
committer
Christophe Jaillet
<jailletc36@apache.org>
Sun, 15 Dec 2013 10:23:07 +0000
(10:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1551009
13f79535
-47bb-0310-9956-
ffa450edef68
modules/metadata/mod_expires.c
patch
|
blob
|
history
diff --git
a/modules/metadata/mod_expires.c
b/modules/metadata/mod_expires.c
index 2ef3d89953a40d27248a686180e70912ba2ab9ed..049cfc2250961029d993a00e601f7c538ede2aaf 100644
(file)
--- 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);
}