You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Dean Gaudet <dg...@hyperreal.org> on 1997/07/24 06:14:25 UTC
cvs commit: apache/src alloc.c
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 <st...@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;