summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/core.c b/server/core.c
index 7c9b250b7f..ef7868107d 100644
--- a/server/core.c
+++ b/server/core.c
@@ -2552,9 +2552,9 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg)
return "Regex could not be compiled";
}
}
- else if (strcmp(cmd->path, "/") != 0)
- {
+ else if (strcmp(cmd->path, "/") != 0) {
int run_mode = ap_state_query(AP_SQ_RUN_MODE);
+ apr_status_t rv;
char *newpath;
cmd->regex = NULL;
@@ -2562,8 +2562,8 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg)
/*
* Ensure that the pathname is canonical, and append the trailing /
*/
- apr_status_t rv = apr_filepath_merge(&newpath, NULL, cmd->path,
- APR_FILEPATH_TRUENAME, cmd->pool);
+ rv = apr_filepath_merge(&newpath, NULL, cmd->path,
+ APR_FILEPATH_TRUENAME, cmd->pool);
if (rv != APR_SUCCESS && rv != APR_EPATHWILD) {
return apr_pstrcat(cmd->pool, "<Directory \"", cmd->path,
"\"> path is invalid.", NULL);