diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2023-09-19 01:14:06 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2023-09-19 01:14:06 +0000 |
commit | ff64eff2d57bd6f8e7fd915b127324c39ec06f79 (patch) | |
tree | 3f48e3f01386b9dbf7173021647f07bd72c594e2 /usr.bin | |
parent | 31fda3291bdb2944129d245a52c7ff05e2f54692 (diff) |
Compare int value against 0, not '\0', for consistency.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/awk/b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/b.c b/usr.bin/awk/b.c index abe6750443c..64284ab8e7c 100644 --- a/usr.bin/awk/b.c +++ b/usr.bin/awk/b.c @@ -1,4 +1,4 @@ -/* $OpenBSD: b.c,v 1.40 2023/09/18 23:33:21 millert Exp $ */ +/* $OpenBSD: b.c,v 1.41 2023/09/19 01:14:05 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -533,7 +533,7 @@ int first(Node *p) /* collects initially active leaves of p into setvec */ setvec[lp] = 1; setcnt++; } - if (type(p) == CCL && (*(int *) right(p)) == '\0') + if (type(p) == CCL && (*(int *) right(p)) == 0) return(0); /* empty CCL */ return(1); case PLUS: |