From c8cbb78af397fbce319c3d678fac9dfa4bef7fa8 Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 19 Sep 2023 01:14:05 +0000 Subject: [PATCH] Compare int value against 0, not '\0', for consistency. --- usr.bin/awk/b.c | 4 ++-- 1 file 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: -- 2.20.1