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
1 changed files with 2 additions and 0 deletions

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