Fix uip/whom.c for C89 compatibility
[mmh] / sbr / seq_add.c
index 7fa7558..fd18a11 100644 (file)
@@ -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);
        }