diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2011-05-14 11:59:32 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2011-05-14 11:59:32 +0000 |
commit | 051436251d284d3e2163f485157e9e1ea320de70 (patch) | |
tree | 2e32cec4aacfc5aeb7ed25a8c3d7580577e3a771 /strings | |
parent | 018b3265e87633205c19ecb99b13207d8e3bda9d (diff) | |
download | apr-051436251d284d3e2163f485157e9e1ea320de70.tar.gz |
Fix syntax for legibility as suggested by Stefan.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1103070 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_fnmatch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/strings/apr_fnmatch.c b/strings/apr_fnmatch.c index 24aca4099..5e4b0d95f 100644 --- a/strings/apr_fnmatch.c +++ b/strings/apr_fnmatch.c @@ -363,12 +363,12 @@ APR_DECLARE(int) apr_fnmatch(const char *pattern, const char *string, int flags) }
}
- if (*string && (!slash || (*string != '/')))
+ if (*string && !(slash && (*string == '/')))
return APR_FNM_NOMATCH;
- if (*pattern && (!slash || ((*pattern != '/')
- && (!escape || (*pattern != '\\')
- || (pattern[1] != '/')))))
+ if (*pattern && !(slash && ((*pattern == '/')
+ || (escape && (*pattern == '\\')
+ && (pattern[1] == '/')))))
return APR_FNM_NOMATCH;
}
|