summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-10-24 20:37:58 +0000
committerjmallett <jmallett@FreeBSD.org>2002-10-24 20:37:58 +0000
commit96c09148caba1a26c358a10b6c958d8de2a4da42 (patch)
tree4c8024456a487bfc46098d21e0d1e20f7f72ed9c /usr.bin
parenta3766d9d16bc89805a360820b49262aa915d639b (diff)
downloadFreeBSD-src-96c09148caba1a26c358a10b6c958d8de2a4da42.zip
FreeBSD-src-96c09148caba1a26c358a10b6c958d8de2a4da42.tar.gz
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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/var.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index c0aaaaf..a1462bc 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -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;
OpenPOWER on IntegriCloud