mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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:
parent
a2fb4feded
commit
5d46839577
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105895
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user