summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-07-02 21:32:10 +0000
committermillert <millert@openbsd.org>1998-07-02 21:32:10 +0000
commit7b5a814caf3a9bd52d92f1db66941a331f1c1c8d (patch)
tree03d30bbcc82ab53f5f1d8499f676c45c33296829
parentbetter fix; may be a small memory leak though (diff)
downloadwireguard-openbsd-7b5a814caf3a9bd52d92f1db66941a331f1c1c8d.tar.xz
wireguard-openbsd-7b5a814caf3a9bd52d92f1db66941a331f1c1c8d.zip
Check against suffNull, not the contents of name
-rw-r--r--usr.bin/make/suff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c
index 22c2b49d505..128ef09bf71 100644
--- a/usr.bin/make/suff.c
+++ b/usr.bin/make/suff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: suff.c,v 1.8 1998/07/02 21:25:40 millert Exp $ */
+/* $OpenBSD: suff.c,v 1.9 1998/07/02 21:32:10 millert Exp $ */
/* $NetBSD: suff.c,v 1.13 1996/11/06 17:59:25 christos Exp $ */
/*
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)suff.c 8.4 (Berkeley) 3/21/94";
#else
-static char rcsid[] = "$OpenBSD: suff.c,v 1.8 1998/07/02 21:25:40 millert Exp $";
+static char rcsid[] = "$OpenBSD: suff.c,v 1.9 1998/07/02 21:32:10 millert Exp $";
#endif
#endif /* not lint */
@@ -691,13 +691,13 @@ Suff_EndTransform(gnp, dummy)
* We'll be called twice when the next target is seen, but .c and .o
* are only linked once...
*/
- if (*t->name)
+ if (t != suffNull)
SuffRemove(t->children, s);
/*
* Remove the target from the source's parents list
*/
- if (*s->name)
+ if (s != suffNull)
SuffRemove(s->parents, t);
} else if ((gn->type & OP_TRANSFORM) && DEBUG(SUFF)) {
printf("transformation %s complete\n", gn->name);