summaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-02-01 08:29:03 +0000
committermrg <mrg@NetBSD.org>2019-02-01 08:29:03 +0000
commitfd79d825ee062e2e999990830ad404040b98c5ec (patch)
tree69be9558a68fbd0d1a3a5f077fc5fd2eb595b940 /usr.bin/tip
parent192803ab2680a3fa181fc1cd39f5031ae9be1fdb (diff)
compare pointers with NULL not '\0'.
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/acu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/acu.c b/usr.bin/tip/acu.c
index ee91f3dfca4..974bc0d34d8 100644
--- a/usr.bin/tip/acu.c
+++ b/usr.bin/tip/acu.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acu.c,v 1.16 2011/09/06 18:33:01 joerg Exp $ */
+/* $NetBSD: acu.c,v 1.17 2019/02/01 08:29:04 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)acu.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: acu.c,v 1.16 2011/09/06 18:33:01 joerg Exp $");
+__RCSID("$NetBSD: acu.c,v 1.17 2019/02/01 08:29:04 mrg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -183,7 +183,7 @@ acutype(char *s)
{
acu_t *p;
- for (p = acutable; p->acu_name != '\0'; p++)
+ for (p = acutable; p->acu_name != NULL; p++)
if (!strcmp(s, p->acu_name))
return (p);
return (NULL);