summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-11-01 22:16:50 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-11-01 22:16:50 +0100
commitf66e55564ea9ac067559c5fccd70026f9caeaed9 (patch)
treea54f4b6c45b9dea57d8a267bfbac5783d64b1ddd /src/core
parent6e83225e6f19a5d1d1b6852def59334a47b3feb4 (diff)
downloadweechat-f66e55564ea9ac067559c5fccd70026f9caeaed9.zip
core: check that name is not NULL in function hdata_get_var
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-hdata.c b/src/core/wee-hdata.c
index e4f8bebd3..4e4322f20 100644
--- a/src/core/wee-hdata.c
+++ b/src/core/wee-hdata.c
@@ -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);