mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit b93b9303da2bc819d74b01b937300ee29f6323ff
parent 6464ba584539365219f84326012fee87f71bde54
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Sat, 31 Dec 2016 13:25:56 +0100

seq: avoid infinite loop in "mscan -n ."

Diffstat:
seq.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/seq.c b/seq.c @@ -397,7 +397,7 @@ char * blaze822_seq_next(char *map, char *range, struct blaze822_seq_iter *iter) { if (strcmp(range, ".") == 0) { - if (!iter->lines) { + if (!iter->lines && !iter->start) { iter->lines = 1; find_cur(map, iter); iter->start = iter->stop = iter->line = iter->cur + 1;