From d3222bb5b77aa3ad1704598966b60072501915c8 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 23 Jun 2002 22:06:52 +0000 Subject: [PATCH] -allow pbuf = NULL in case of NO MEMORY, too --- main/spprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/spprintf.c b/main/spprintf.c index fcef72b564..1177588e47 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -618,7 +618,8 @@ PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap * highest possible address. */ if (xbuf_init(&xbuf, max_len)) { - *pbuf = NULL; + if (pbuf) + *pbuf = NULL; return 0; } else { /* -- 2.50.1