From 61ec25d6a7c41ce4cb161d2d45f8463c90c0ea8c Mon Sep 17 00:00:00 2001 From: John Carr Date: Wed, 3 Apr 1991 18:14:39 +0000 Subject: [PATCH] NULL != 0 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1989 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/movemail/movemail.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index ad9374655..89ace3fc8 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -729,9 +729,9 @@ FILE *f; return (DONE); } - *p = NULL; - if (*--p == '\n') *p = NULL; - if (*--p == '\r') *p = NULL; + *p = '\0'; + if (*--p == '\n') *p = '\0'; + if (*--p == '\r') *p = '\0'; return(OK); } @@ -742,7 +742,7 @@ FILE *f; { if (getline(buf, n, f) != OK) return (NOTOK); if (*buf == '.') { - if (*(buf+1) == NULL) { + if (buf[1] == '\0') { return (DONE); } else { strcpy(buf, buf+1); -- 2.26.2