diff options
author | Simo Sorce <idra@samba.org> | 2002-01-19 17:22:28 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-01-19 17:22:28 +0000 |
commit | 6431e54df0161707b6b46c8c6f701e21df95f1de (patch) | |
tree | 740b8924c553417a5fe0e991f84b6ed2cb43e8de /source/lib/snprintf.c | |
parent | fcf0a2b07b7dbe2e73710fff0830e6726ea19aff (diff) | |
download | samba-6431e54df0161707b6b46c8c6f701e21df95f1de.tar.gz samba-6431e54df0161707b6b46c8c6f701e21df95f1de.tar.xz samba-6431e54df0161707b6b46c8c6f701e21df95f1de.zip |
fixes to check asprintf return
thanks to Andreas Moroder for spotting them
Diffstat (limited to 'source/lib/snprintf.c')
-rw-r--r-- | source/lib/snprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c index 6f6d0f09830..0b0bdb0b335 100644 --- a/source/lib/snprintf.c +++ b/source/lib/snprintf.c @@ -808,6 +808,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); |