this avoids a variable on stack and some internal
pointer operations.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100774
13f79535-47bb-0310-9956-
ffa450edef68
void *,
char *, char *))
{
- apr_size_t last = strlen(key) - 1;
char *val, *nextp, *endp;
const char *err;
- if (*key != '[' || key[last] != ']') {
+ endp = key + strlen(key) - 1;
+ if (*key != '[' || *endp != ']') {
return "RewriteCond: bad flag delimiters";
}
- key[last] = ','; /* for simpler parsing */
+ *endp = ','; /* for simpler parsing */
++key;
while (*key) {