mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
7adca508b1
commit
df3da57de2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user