httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server util.c
Date Sun, 02 Dec 2001 20:38:33 GMT
brianp      01/12/02 12:38:33

  Modified:    server   util.c
  Log:
  Optimization: replace apr_pstrndup() with apr_pstrmemdup() in
  ap_escape_html() to eliminate a redundant scan through the string.
  
  Revision  Changes    Path
  1.117     +1 -1      httpd-2.0/server/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util.c,v
  retrieving revision 1.116
  retrieving revision 1.117
  diff -u -r1.116 -r1.117
  --- util.c	2001/12/02 05:46:36	1.116
  +++ util.c	2001/12/02 20:38:33	1.117
  @@ -1649,7 +1649,7 @@
   	    j += 4;
   
       if (j == 0)
  -	return apr_pstrndup(p, s, i);
  +	return apr_pstrmemdup(p, s, i);
   
       x = apr_palloc(p, i + j + 1);
       for (i = 0, j = 0; s[i] != '\0'; i++, j++)
  
  
  

Mime
View raw message