From: markus schnalke Date: Tue, 27 Mar 2012 16:11:49 +0000 (+0200) Subject: Enhance fix of 0b81a300d9e7cf78b6bc11d8c870f57fa81fcdc4. X-Git-Tag: mmh-thesis-end~124 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=e1b2a81e2b5f77605973a47734a895cd3e83b73c Enhance fix of 0b81a300d9e7cf78b6bc11d8c870f57fa81fcdc4. Ken Hornstein did the same fix for nmh. He showed me that I had missed the second, similar, case. Thanks. --- diff --git a/sbr/seq_add.c b/sbr/seq_add.c index 7fa7558..fd18a11 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -66,7 +66,7 @@ seq_addsel(struct msgs *mp, char *cp, int public, int zero) ** If sequence is new, or zero flag is set, then first ** clear the bit for this sequence from all messages. */ - if (new_seq || zero) { + if (mp->nummsg>0 && (new_seq || zero)) { for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++) clear_sequence(mp, i, msgnum); }