This patch should not change any behavior. We do this refactoring in
preparation for switching to ap_walk_config.
git-svn-id: svn://scripts.mit.edu/trunk@1604
db9d59ff-b01e-0410-9b1a-
cd9a8c06840f
/* Optimize */
if (vals) {
/* Optimize */
if (vals) {
- int i = 0;
- while (attributes[i]) {
+ int i;
+ for (i = 0; attributes[i]; i++) {
+ char *val = apr_pstrdup (r->pool, vals[i]);
if (strcasecmp (attributes[i], "apacheServerName") == 0) {
if (strcasecmp (attributes[i], "apacheServerName") == 0) {
- reqc->name = apr_pstrdup (r->pool, vals[i]);
}
else if (strcasecmp (attributes[i], "apacheServerAdmin") == 0) {
}
else if (strcasecmp (attributes[i], "apacheServerAdmin") == 0) {
- reqc->admin = apr_pstrdup (r->pool, vals[i]);
}
else if (strcasecmp (attributes[i], "apacheDocumentRoot") == 0) {
}
else if (strcasecmp (attributes[i], "apacheDocumentRoot") == 0) {
- reqc->docroot = apr_pstrdup (r->pool, vals[i]);
}
else if (strcasecmp (attributes[i], "apacheScriptAlias") == 0) {
}
else if (strcasecmp (attributes[i], "apacheScriptAlias") == 0) {
- reqc->cgiroot = apr_pstrdup (r->pool, vals[i]);
}
else if (strcasecmp (attributes[i], "apacheSuexecUid") == 0) {
}
else if (strcasecmp (attributes[i], "apacheSuexecUid") == 0) {
- reqc->uid = apr_pstrdup(r->pool, vals[i]);
}
else if (strcasecmp (attributes[i], "apacheSuexecGid") == 0) {
}
else if (strcasecmp (attributes[i], "apacheSuexecGid") == 0) {
- reqc->gid = apr_pstrdup(r->pool, vals[i]);