mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue