mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: check that name is not NULL in function hdata_get_var
This commit is contained in:
@@ -392,7 +392,7 @@ hdata_get_var (struct t_hdata *hdata, void *pointer, const char *name)
|
||||
{
|
||||
int offset;
|
||||
|
||||
if (!hdata || !pointer)
|
||||
if (!hdata || !pointer || !name)
|
||||
return NULL;
|
||||
|
||||
offset = hdata_get_var_offset (hdata, name);
|
||||
|
||||
Reference in New Issue
Block a user