X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fseq_add.c;h=d5109b0dcb5b302a92c6c62b0ad7c11e0cb2412d;hb=7fd676d57355fd26c1127a79d9ba805973928316;hp=0bdcfdfee62947f2f277710fb764bb2c6c204773;hpb=13ae9ba066e6b8c114daa6714895a56816465f49;p=mmh diff --git a/sbr/seq_add.c b/sbr/seq_add.c index 0bdcfdf..d5109b0 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -67,7 +67,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 ((new_seq || zero) && mp->nummsg > 0) { for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++) clear_sequence (mp, i, msgnum); } @@ -159,7 +159,7 @@ seq_addmsg (struct msgs *mp, char *cp, int msgnum, 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 ((new_seq || zero) && mp->nummsg > 0) { for (j = mp->lowmsg; j <= mp->hghmsg; j++) clear_sequence (mp, i, j); }