From: Ken Hornstein Date: Fri, 23 Mar 2012 03:34:08 +0000 (-0400) Subject: If the number of messages in a folder is zero, then don't try to X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c915e11a95bdfb6157eecc81c5df82de65c86796?hp=c915e11a95bdfb6157eecc81c5df82de65c86796 If the number of messages in a folder is zero, then don't try to clear out the sequence list; this can cause you to run off the beginning of the malloc'd buffer. This can happen when you use "comp" with a draft folder, the draft folder is empty, and you have a previous sequence set in your .mh_profile. As far as I can tell this has been a problem for nearly forever, but I only ran into it recently when adding the readline support. Go figure. ---