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 <[EMAIL PROTECTED]>
  
  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;
   
  
  
  

Reply via email to