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:
parent
7f9211510f
commit
3a1853983d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user