X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.c;h=0112e558fd6911608e13762f1572d925d042503c;hp=1f49f9113554b6b05ab83319099838ea2472d0c3;hb=2f928128cac1c0bc2ce2465671e5abe2a9671d28;hpb=b2a6a9673e124c222f921650a6f0025b64ab2145 diff --git a/buffy.c b/buffy.c index 1f49f91..0112e55 100644 --- a/buffy.c +++ b/buffy.c @@ -303,7 +303,8 @@ int mutt_buffy_check (int force) BuffyCount = 0; BuffyNotify = 0; - if ((!Context || mx_is_local (Context->magic-1)) && stat (Context->path, &contex_sb) != 0) { + if (!Context || !Context->path || + (mx_is_local (Context->magic-1) && stat (Context->path, &contex_sb) != 0)) { /* check device ID and serial number instead of comparing paths */ contex_sb.st_dev = 0; contex_sb.st_ino = 0;