From: William A. Rowe Jr Date: Mon, 23 Oct 2000 19:02:41 +0000 (+0000) Subject: Fix foobar X-Git-Tag: APACHE_2_0_ALPHA_8~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e5cf24494dfa510323a44c5d9acf49bf60805f4;p=apache Fix foobar git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86720 13f79535-47bb-0310-9956-ffa450edef68 --- 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);