From 8e5cf24494dfa510323a44c5d9acf49bf60805f4 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 23 Oct 2000 19:02:41 +0000 Subject: [PATCH] Fix foobar git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86720 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_cgi.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 8138d4e3d2..4b41e495ed 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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); -- 2.40.0