mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +02:00
core: check that string is not NULL in function string_convert_escaped_chars
This commit is contained in:
@@ -619,6 +619,9 @@ string_convert_escaped_chars (const char *string)
|
||||
int pos_output, i, length;
|
||||
unsigned int value;
|
||||
|
||||
if (!string)
|
||||
return NULL;
|
||||
|
||||
/* the output length is always <= to string length */
|
||||
output = malloc (strlen (string) + 1);
|
||||
if (!output)
|
||||
|
||||
Reference in New Issue
Block a user