diff --git a/libs/util/gib_vars.c b/libs/util/gib_vars.c index ce7aa5e0b..cab6765a6 100644 --- a/libs/util/gib_vars.c +++ b/libs/util/gib_vars.c @@ -73,6 +73,8 @@ GIB_Var_Get_R (hashtab_t *vars, char *name) char *p; gib_var_t *l; + if (!vars) + return 0; if ((p = strchr (name, '.'))) { *p = 0; l = Hash_Find (vars, name);