MFC 1.75: Fix a problem introduced by previous change, which causes

a seg-fault if the user specifies a keyword which is implemented as
an alias to some other keyword.

Submitted by:	Kostik Belousov
Approved by:	re (scottl)
This commit is contained in:
gad 2006-04-05 21:01:31 +00:00
parent 7f9211510f
commit 3a1853983d

View File

@ -302,6 +302,8 @@ findvar(char *p, int user, char **header)
hp = strchr(p, '=');
if (hp)
*hp++ = '\0';
else
hp = p;
key.name = p;
v = bsearch(&key, var, sizeof(var)/sizeof(VAR) - 1, sizeof(VAR), vcmp);