summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/spprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/spprintf.c b/main/spprintf.c
index de8d691b14..158d9ddda3 100644
--- a/main/spprintf.c
+++ b/main/spprintf.c
@@ -804,6 +804,7 @@ PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap
if (max_len && buf.len > max_len) {
buf.len = max_len;
}
+
smart_string_0(&buf);
if (buf.c) {