httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server util_script.c
Date Thu, 23 Aug 2001 21:16:05 GMT
wrowe       01/08/23 14:16:05

  Modified:    server   util_script.c
  Log:
    Why two ifdef blocks?  This is simpler to read
  
  Revision  Changes    Path
  1.61      +1 -3      httpd-2.0/server/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_script.c,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- util_script.c	2001/07/25 21:34:15	1.60
  +++ util_script.c	2001/08/23 21:16:05	1.61
  @@ -359,12 +359,10 @@
                                          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));
  
  
  

Mime
View raw message