core: check that data is not NULL in function string_iconv_fprintf

v2.8-utf8proc
Sébastien Helleu 2014-09-28 08:20:08 +02:00
parent 0f5be59a7c
commit 08d2b9aaeb
1 changed files with 4 additions and 0 deletions

View File

@ -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)
{