1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

core: check that string is not NULL in function string_input_for_buffer

This commit is contained in:
Sébastien Helleu
2014-07-28 08:27:16 +02:00
parent 12c8cd4988
commit 3ffbb85cb9
+3
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;