]> granicus.if.org Git - apache/commitdiff
Fix foobar
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 23 Oct 2000 19:02:41 +0000 (19:02 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 23 Oct 2000 19:02:41 +0000 (19:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86720 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c

index 8138d4e3d270a6eb6f056b8734ac0a8adf003b68..4b41e495edca91a43949f73603d412690229d56d 100644 (file)
@@ -438,6 +438,12 @@ static apr_status_t build_argv_list(char ***argv, request_rec *r, apr_pool_t *p)
 
 static apr_status_t build_command_line(char **cmd, request_rec *r, apr_pool_t *p)
 {
+#ifdef WIN32
+    char *quoted_filename = NULL;
+    char *interpreter = NULL;
+    char *arguments = NULL;
+    file_type_e fileType;
+#endif
     char *argv0;
 
     /* Allow suexec's "/" check to succeed */
@@ -446,12 +452,7 @@ static apr_status_t build_command_line(char **cmd, request_rec *r, apr_pool_t *p
     else
         argv0 = r->filename;
 
-#ifdef WIN32
-    char *quoted_filename = NULL;
-    char *interpreter = NULL;
-    char *arguments = NULL;
-    file_type_e fileType;
-
+#ifdef WIN32 
     *cmd = NULL;
     fileType = ap_get_win32_interpreter(r, &interpreter, &arguments);