From e1b2a81e2b5f77605973a47734a895cd3e83b73c Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 18:11:49 +0200 Subject: [PATCH] Enhance fix of 0b81a300d9e7cf78b6bc11d8c870f57fa81fcdc4. Ken Hornstein did the same fix for nmh. He showed me that I had missed the second, similar, case. Thanks. --- sbr/seq_add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.7.10.4