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);