mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
core: check that data is not NULL in function string_iconv_fprintf
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user