diff options
-rw-r--r-- | usr.bin/find/operator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/find/operator.c b/usr.bin/find/operator.c index 22bfeb6..d331faf 100644 --- a/usr.bin/find/operator.c +++ b/usr.bin/find/operator.c @@ -190,7 +190,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); } |