diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-08-21 10:44:22 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-08-21 10:44:22 +0000 |
commit | 74b0c7585af10db0fb809596151f98a816d92227 (patch) | |
tree | f9725deff009a5f56b3411da12bbfb1bb74fd34d /usr.bin | |
parent | 755fbc12140acf17a40182deba64139ac9527d74 (diff) |
Var_Append needs to set v for DEBUG(VAR) to work.
Obvious fix.
Problem reported by Gregory Steuck, thanks a lot !
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/var.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c index 8a36521d5a1..341a6596fed 100644 --- a/usr.bin/make/var.c +++ b/usr.bin/make/var.c @@ -1,4 +1,4 @@ -/* $OpenBSD: var.c,v 1.46 2000/07/18 20:17:20 espie Exp $ */ +/* $OpenBSD: var.c,v 1.47 2000/08/21 10:44:21 espie Exp $ */ /* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */ /* @@ -70,7 +70,7 @@ #if 0 static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: var.c,v 1.46 2000/07/18 20:17:20 espie Exp $"; +static char rcsid[] = "$OpenBSD: var.c,v 1.47 2000/08/21 10:44:21 espie Exp $"; #endif #endif /* not lint */ @@ -691,7 +691,7 @@ Var_Append(name, val, ctxt) v = VarFind(name, (SymTable *)ctxt, (ctxt == VAR_GLOBAL) ? FIND_ENV : 0); if (v == NULL) { - (void)VarAdd(name, val, ctxt); + v = VarAdd(name, val, ctxt); } else { Buf_AddSpace(&(v->val)); Buf_AddString(&(v->val), val); |