httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.org>
Subject cvs commit: apache/src alloc.c
Date Thu, 24 Jul 1997 04:14:25 GMT
dgaudet     97/07/23 21:14:25

  Modified:    src       alloc.c
  Log:
  pstrcat would return bogus results if it had no arguments.
  
  Submitted by:	Stanley Gambarin <stanleyg@cs.bu.edu>
  
  Revision  Changes    Path
  1.42      +3 -0      apache/src/alloc.c
  
  Index: alloc.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/alloc.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- alloc.c	1997/07/21 05:53:40	1.41
  +++ alloc.c	1997/07/24 04:14:24	1.42
  @@ -436,6 +436,9 @@
   
     /* Allocate the required string */
   
  +  if (len == 0) {
  +      return NULL;
  +  }
     res = (char *)palloc(a, len + 1);
     cp = res;
   
  
  
  

Mime
View raw message