Commit ca49f57b authored by Thomas Roessler's avatar Thomas Roessler

Fix NULL pointer deferences.

parent 4ec1af89
......@@ -777,7 +777,7 @@ int mutt_index_menu (void)
if (Context && Context->magic == M_IMAP)
imap_set_logout (Context);
#endif
oldcount = Context->msgcount;
oldcount = Context ? Context->msgcount : 0;
if (!Context || (check = mx_close_mailbox (Context, &index_hint)) == 0)
done = 1;
......@@ -951,7 +951,7 @@ int mutt_index_menu (void)
int check;
mutt_str_replace (&LastFolder, Context->path);
oldcount = Context->msgcount;
oldcount = Context ? Context->msgcount : 0;
if ((check = mx_close_mailbox (Context, &index_hint)) != 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment