aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/tip/acu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/acu.c b/usr.bin/tip/tip/acu.c
index efd8ca144610a..78786981f1138 100644
--- a/usr.bin/tip/tip/acu.c
+++ b/usr.bin/tip/tip/acu.c
@@ -100,10 +100,10 @@ con(void)
if ((acu = acutype(AT)) == NOACU)
return ("unknown ACU type");
if (*cp != '@') {
- while (*cp) {
+ while (cp != NULL && *cp) {
phnum = cp;
cp = strpbrk(cp, ",");
- if (*cp != '\0')
+ if (cp != NULL && *cp != '\0')
*cp++ = '\0';
if (strlen(phnum) == 0)