From: William A. Rowe Jr Date: Thu, 23 Aug 2001 21:16:05 +0000 (+0000) Subject: Why two ifdef blocks? This is simpler to read X-Git-Tag: 2.0.25~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6013178e7c32d973b237ba4d6d3b81a0eb9583e0;p=apache Why two ifdef blocks? This is simpler to read git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90588 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index c80fba1d83..e2cc7e8920 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -359,12 +359,10 @@ AP_DECLARE(void) ap_add_cgi_vars(request_rec *r) NULL); if (pa_req->filename) { -#ifdef WIN32 - char buffer[HUGE_STRING_LEN]; -#endif char *pt = apr_pstrcat(r->pool, pa_req->filename, pa_req->path_info, NULL); #ifdef WIN32 + char buffer[HUGE_STRING_LEN]; /* We need to make this a real Windows path name */ GetFullPathName(pt, HUGE_STRING_LEN, buffer, NULL); apr_table_setn(e, "PATH_TRANSLATED", apr_pstrdup(r->pool, buffer));