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

core: check that string pointer is not NULL in function "string_shared_get"

This commit is contained in:
Sébastien Helleu
2019-06-15 17:21:06 +02:00
parent 95cbf3a48b
commit 866a29c7e6
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -3616,6 +3616,9 @@ string_shared_get (const char *string)
char *key;
int length;
if (!string)
return NULL;
if (!string_hashtable_shared)
{
/*