]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Follow up to r1909356: c89/style fix.
authorYann Ylavic <ylavic@apache.org>
Sun, 23 Apr 2023 20:44:21 +0000 (20:44 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 23 Apr 2023 20:44:21 +0000 (20:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909368 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 7c9b250b7f09edad448cf64e27a88e85b95f53f8..ef7868107ddb60ba0e36eb3ffa98c80770eae8ef 100644 (file)
@@ -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);