core: check that data is not NULL in function string_iconv_fprintf
(cherry picked from commit 08d2b9aaeb1df836c91d2c6a14932907d39fba9e)
This commit is contained in:
parent
066216481b
commit
8967ba37f1
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user