diff options
-rw-r--r-- | src/core/wee-string.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 0bdb2f356..4a2955396 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -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 |