[dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,1.6,1.7

cras at procontrol.fi cras at procontrol.fi
Mon Sep 8 04:05:01 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv20021/lib-storage/index

Modified Files:
	index-mail-headers.c 
Log Message:
bugfix



Index: index-mail-headers.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- index-mail-headers.c	7 Sep 2003 13:56:41 -0000	1.6
+++ index-mail-headers.c	8 Sep 2003 00:04:59 -0000	1.7
@@ -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();



More information about the dovecot-cvs mailing list