-2007-04-02 14:33 -0700 Brendan Cully <brendan@kublai.com> (eabef30c9344)
+2007-04-02 17:15 -0700 Brendan Cully <brendan@kublai.com> (527589b0b7dd)
+
+ * curs_lib.c: Make mutt_edit_file display error if editor return is
+ non-zero. (closes #1638)
+
+ * imap/command.c: Reset uidnext unconditionally in IMAP new mail
+ check. Reverts a logic error introduced in [0cb476dc70a7]
* imap/imap.c, imap/imap_private.h, imap/message.c, imap/util.c: Fix a
segfault in the new mboxcache hcache lookup. idata may not have an
if (i > mhs->max || !mhs->flags)
{
newmax = i + 128;
+ j = mhs->flags ? mhs->max + 1 : 0;
safe_realloc (&mhs->flags, sizeof (mhs->flags[0]) * (newmax + 1));
- for (j = mhs->max + 1; j <= newmax; j++)
- mhs->flags[j] = 0;
+ while (j <= newmax)
+ mhs->flags[j++] = 0;
mhs->max = newmax;
}