core: check that string is not NULL in function string_input_for_buffer
parent
12c8cd4988
commit
3ffbb85cb9
|
@ -2585,6 +2585,9 @@ string_input_for_buffer (const char *string)
|
|||
{
|
||||
char *pos_slash, *pos_space, *next_char;
|
||||
|
||||
if (!string)
|
||||
return NULL;
|
||||
|
||||
/* special case for C comments pasted in input line */
|
||||
if (strncmp (string, "/*", 2) == 0)
|
||||
return string;
|
||||
|
|
Loading…
Reference in New Issue