diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-11 02:53:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-11 02:53:05 +0000 |
commit | 6036d102149ac80cd4656ef6a610d81a69eea569 (patch) | |
tree | 6cdcbb318bbe6af922558e1a2ac7179020a934e6 /usr.bin/find/operator.c | |
parent | dc129fc4e4231a90362442cca0c5c96fabfb17ee (diff) |
fix "find . !" coredump; thepish@freebsd
Diffstat (limited to 'usr.bin/find/operator.c')
-rw-r--r-- | usr.bin/find/operator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/find/operator.c b/usr.bin/find/operator.c index 50339b23253..0fd6a57a1f0 100644 --- a/usr.bin/find/operator.c +++ b/usr.bin/find/operator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: operator.c,v 1.2 1996/06/26 05:33:12 deraadt Exp $ */ +/* $OpenBSD: operator.c,v 1.3 1998/08/11 02:53:04 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -38,7 +38,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)operator.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: operator.c,v 1.2 1996/06/26 05:33:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: operator.c,v 1.3 1998/08/11 02:53:04 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -193,7 +193,7 @@ not_squish(plan) int notlevel = 1; node = yanknode(&plan); - while (node->type == N_NOT) { + while (node != NULL && node->type == N_NOT) { ++notlevel; node = yanknode(&plan); } |