diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-28 08:20:08 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-28 08:20:08 +0200 |
commit | 08d2b9aaeb1df836c91d2c6a14932907d39fba9e (patch) | |
tree | 2764ed01f8bec7da3ebbde6bbc4bd3f260c7647b /src | |
parent | 0f5be59a7c351ec58f181cb4b43cb1d237fa9ed4 (diff) | |
download | weechat-08d2b9aaeb1df836c91d2c6a14932907d39fba9e.zip |
core: check that data is not NULL in function string_iconv_fprintf
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 6d9af0ede..5be100988 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2256,6 +2256,10 @@ string_iconv_fprintf (FILE *file, const char *data, ...) int rc, num_written; rc = 0; + + if (!data) + return rc; + weechat_va_format (data); if (vbuffer) { |