mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
don't seg if given a null table (ie, no vars in this context)
This commit is contained in:
parent
502898a6b5
commit
9f1cedf812
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ GIB_Var_Get_R (hashtab_t *vars, char *name)
|
||||||
char *p;
|
char *p;
|
||||||
gib_var_t *l;
|
gib_var_t *l;
|
||||||
|
|
||||||
|
if (!vars)
|
||||||
|
return 0;
|
||||||
if ((p = strchr (name, '.'))) {
|
if ((p = strchr (name, '.'))) {
|
||||||
*p = 0;
|
*p = 0;
|
||||||
l = Hash_Find (vars, name);
|
l = Hash_Find (vars, name);
|
||||||
|
|
Loading…
Reference in a new issue