don't seg if given a null table (ie, no vars in this context)

This commit is contained in:
Bill Currie 2002-08-22 16:20:06 +00:00
parent 502898a6b5
commit 9f1cedf812

View file

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