cvs: php4 /main spprintf.c
| From: | Marcus B�rger | Date: | Sun, 23 Jun 2002 22:06:52 +0000 |
| Subject: | cvs: php4 /main spprintf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12469@lists.php.net to get a copy of this message | ||
helly Sun Jun 23 18:06:52 2002 EDT
Modified files:
/php4/main spprintf.c
Log:
-allow pbuf = NULL in case of NO MEMORY, too
Index: php4/main/spprintf.c
diff -u php4/main/spprintf.c:1.5 php4/main/spprintf.c:1.6
--- php4/main/spprintf.c:1.5 Sun Jun 23 18:02:35 2002
+++ php4/main/spprintf.c Sun Jun 23 18:06:52 2002
@@ -618,7 +618,8 @@
* highest possible address.
*/
if (xbuf_init(&xbuf, max_len)) {
- *pbuf = NULL;
+ if (pbuf)
+ *pbuf = NULL;
return 0;
} else {
/*