diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 78a3b5f6..558c34a3 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -599,6 +599,8 @@ static int get_mail_count(void) int count; fname = g_getenv("MAIL"); + if (fname == NULL) return 0; + if (stat(fname, &statbuf) != 0) { mail_last_mtime = -1; mail_last_size = -1;