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.c
Date Mon, 23 Jul 2001 19:52:42 GMT
wrowe       01/07/23 12:52:41

  Modified:    server   util.c
  Log:
    The original answer was evil, return NULL if the file name has no path!
  
  Revision  Changes    Path
  1.107     +1 -2      httpd-2.0/server/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util.c,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- util.c	2001/02/25 01:12:50	1.106
  +++ util.c	2001/07/23 19:52:41	1.107
  @@ -599,8 +599,7 @@
       int l;
   
       if (last_slash == NULL) {
  -	/* XXX: well this is really broken if this happens */
  -	return (apr_pstrdup(p, "/"));
  +	return NULL;
       }
       l = (last_slash - s) + 1;
       d = apr_palloc(p, l + 1);
  
  
  

Mime
View raw message