mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
core: return NULL in function string_cut if string is NULL
This commit is contained in:
@@ -112,6 +112,9 @@ string_cut (const char *string, int length, int count_suffix, int screen,
|
||||
char *result;
|
||||
const char *ptr_string;
|
||||
|
||||
if (!string)
|
||||
return NULL;
|
||||
|
||||
if (screen)
|
||||
ptr_string = gui_chat_string_add_offset_screen (string, length);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user