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:
@@ -3616,6 +3616,9 @@ string_shared_get (const char *string)
|
||||
char *key;
|
||||
int length;
|
||||
|
||||
if (!string)
|
||||
return NULL;
|
||||
|
||||
if (!string_hashtable_shared)
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user