core: check that string is not NULL in function string_convert_escaped_chars
This commit is contained in:
parent
8fc8cbc129
commit
60c7696353
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user