Fix problem with my ability to tell the difference between 'r' and 'l'... We

want to check var[1], not val[1].

Submitted by:	Mark Valentine <mark@thuvia.demon.co.uk>
Pointed out by:	sam
Pointy hat to:	jmallett
This commit is contained in:
Juli Mallett 2002-10-24 20:37:58 +00:00
parent a2fb4feded
commit 5d46839577
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105895

View file

@ -2281,7 +2281,7 @@ Var_Subst (char *var, char *str, GNode *ctxt, Boolean undefErr)
int expand;
for (;;) {
if (str[1] != '(' && str[1] != '{') {
if (str[1] != *var || val[1] != '\0') {
if (str[1] != *var || var[1] != '\0') {
Buf_AddBytes(buf, 2, (Byte *) str);
str += 2;
expand = FALSE;