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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user