1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-07 02:54:19 -04:00

Don't crash if MAIL environment isn't set.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@848 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-17 18:02:17 +00:00 committed by cras
parent 7adca508b1
commit df3da57de2

View File

@ -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;