summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-09-28 08:20:08 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-09-28 08:20:08 +0200
commit08d2b9aaeb1df836c91d2c6a14932907d39fba9e (patch)
tree2764ed01f8bec7da3ebbde6bbc4bd3f260c7647b /src
parent0f5be59a7c351ec58f181cb4b43cb1d237fa9ed4 (diff)
downloadweechat-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.c4
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)
{