1
0
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:
Sébastien Helleu
2021-11-01 22:16:50 +01:00
parent 6e83225e6f
commit f66e55564e
+1 -1
View File
@@ -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);