diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/util.c b/server/util.c index c49274d656..c57258aeb3 100644 --- a/server/util.c +++ b/server/util.c @@ -251,10 +251,8 @@ AP_DECLARE(int) ap_os_is_path_absolute(apr_pool_t *p, const char *dir) AP_DECLARE(int) ap_is_matchexp(const char *str) { - int x; - - for (x = 0; str[x]; x++) - if ((str[x] == '*') || (str[x] == '?')) + for (; *str; str++) + if ((*str == '*') || (*str == '?')) return 1; return 0; } |