and simpler version.
Submitted by: Cliff Woolley
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94291
13f79535-47bb-0310-9956-
ffa450edef68
return 0;
#endif
path += dots;
- while (*path && (*path != '/')) {
- ++path;
- }
- if (*path == '/') {
- ++path;
+ /* Advance to either the null byte at the end of the
+ * string or the character right after the next slash,
+ * whichever comes first
+ */
+ while (*path && (*path++ != '/')) {
+ continue;
}
}
return 1;