Commit 92954afd authored by Thomas Roessler's avatar Thomas Roessler

Try fixing a possible segmentation fault. I'm not entirely sure how

I produced it, but it's at least obvious where it happened.
parent 9f8e5704
......@@ -439,7 +439,7 @@ int mutt_index_menu (void)
imap_allow_reopen (Context);
#endif
index_hint = (Context->vcount && menu->current < Context->vcount) ? CURHDR->index : 0;
index_hint = (Context->vcount && menu->current >= 0 && menu->current < Context->vcount) ? CURHDR->index : 0;
if ((check = mx_check_mailbox (Context, &index_hint, 0)) < 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