summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 972f37c3..3160d333 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -817,7 +817,8 @@ read_new_mail(void * voidfptr, void *optarg)
char genbuf[4];
arg->idc++;
- if (fptr->filemode)
+ // XXX fptr->filename may be invalid.
+ if (fptr->filemode || !fptr->filename[0])
return 0;
clear();
move(10, 0);