Mercurial > dovecot > core-2.2
changeset 1758:81ebf6c81fc4 HEAD
bugfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 08 Sep 2003 03:04:59 +0300 |
parents | ebc6c417e6bc |
children | 25b42c124efd |
files | src/lib-storage/index/index-mail-headers.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail-headers.c Sun Sep 07 21:43:27 2003 +0300 +++ b/src/lib-storage/index/index-mail-headers.c Mon Sep 08 03:04:59 2003 +0300 @@ -247,12 +247,16 @@ } else { t_push(); headers = sort_array(headers); - for (i = 0; i < size && *headers != NULL; i++) { + for (i = 0; i < size && *headers != NULL;) { cmp = strcasecmp(*headers, data[i]->name); if (cmp <= 0) { - if (cmp == 0) + if (cmp == 0) { data[i]->parsing = TRUE; + i++; + } headers++; + } else { + i++; } } t_pop();