summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2003-09-06 06:52:08 +0000
committersjg <sjg@NetBSD.org>2003-09-06 06:52:08 +0000
commit435f6fef8442938e4bfb7c1f18236329196d4e2d (patch)
treea658d8fdfa2a73dc65c9587b15fe929dd3d752b8 /usr.bin/make
parent680540f1947fe042836ff4fa569df4aa2af4e30e (diff)
Make empty() consider an undefined variable as empty,
rather than throw a syntax error.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/cond.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c
index f72ae16afcb..dfb5d760cea 100644
--- a/usr.bin/make/cond.c
+++ b/usr.bin/make/cond.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cond.c,v 1.17 2003/08/07 11:14:49 agc Exp $ */
+/* $NetBSD: cond.c,v 1.18 2003/09/06 06:52:08 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: cond.c,v 1.17 2003/08/07 11:14:49 agc Exp $";
+static char rcsid[] = "$NetBSD: cond.c,v 1.18 2003/09/06 06:52:08 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)cond.c 8.2 (Berkeley) 1/2/94";
#else
-__RCSID("$NetBSD: cond.c,v 1.17 2003/08/07 11:14:49 agc Exp $");
+__RCSID("$NetBSD: cond.c,v 1.18 2003/09/06 06:52:08 sjg Exp $");
#endif
#endif /* not lint */
#endif
@@ -886,7 +886,7 @@ error:
if (condExpr[arglen] != '\0') {
val = Var_Parse(&condExpr[arglen - 1], VAR_CMD,
- doEval, &length, &doFree);
+ FALSE, &length, &doFree);
if (val == var_Error) {
t = Err;
} else {