summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r--usr.bin/mail/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c
index d1ff37f..ad8aa53 100644
--- a/usr.bin/mail/edit.c
+++ b/usr.bin/mail/edit.c
@@ -89,7 +89,7 @@ edit1(int *msgvec, int type)
char *p;
printf("Edit message %d [ynq]? ", msgvec[i]);
- if (fgets(buf, sizeof(buf), stdin) == 0)
+ if (fgets(buf, sizeof(buf), stdin) == NULL)
break;
for (p = buf; *p == ' ' || *p == '\t'; p++)
;
OpenPOWER on IntegriCloud