projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put structure into anno(1) and its man page.
[mmh]
/
sbr
/
seq_add.c
diff --git
a/sbr/seq_add.c
b/sbr/seq_add.c
index
7fa7558
..
fd18a11
100644
(file)
--- 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 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);
}
for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++)
clear_sequence(mp, i, msgnum);
}