core: check that string is not NULL in function string_input_for_buffer

v2.8-utf8proc
Sébastien Helleu 2014-07-28 08:27:16 +02:00
parent 12c8cd4988
commit 3ffbb85cb9
1 changed files with 3 additions and 0 deletions

View File

@ -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;