summaryrefslogtreecommitdiffstats
path: root/source/lib/snprintf.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-01-19 17:29:32 +0000
committerSimo Sorce <idra@samba.org>2002-01-19 17:29:32 +0000
commit6b123adda901ff05b0271eeda060297448f64eec (patch)
treebe347f8ec34eeea959cd8f92806251974c414a0a /source/lib/snprintf.c
parentaf37a86917c969118a46cff7574487dbe1c75a2f (diff)
downloadsamba-6b123adda901ff05b0271eeda060297448f64eec.tar.gz
samba-6b123adda901ff05b0271eeda060297448f64eec.tar.xz
samba-6b123adda901ff05b0271eeda060297448f64eec.zip
fixes (asprintf) from 2.2
Diffstat (limited to 'source/lib/snprintf.c')
-rw-r--r--source/lib/snprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c
index 88eea2824be..9a9dcdbae1e 100644
--- a/source/lib/snprintf.c
+++ b/source/lib/snprintf.c
@@ -803,6 +803,7 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
va_list ap;
int ret;
+ *ptr = NULL;
va_start(ap, format);
ret = vasprintf(ptr, format, ap);
va_end(ap);