# HG changeset patch # User Timo Sirainen # Date 1062979499 -10800 # Node ID 81ebf6c81fc47103c20f82963c7ab70dd14b53f9 # Parent ebc6c417e6bc320cdadb42021ff5568bedbb659a bugfix diff -r ebc6c417e6bc -r 81ebf6c81fc4 src/lib-storage/index/index-mail-headers.c --- 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();