[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-keywords.c, 1.2, 1.3

cras at dovecot.org cras at dovecot.org
Tue May 30 11:22:35 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv30970

Modified Files:
	dbox-keywords.c 
Log Message:
Fix for handling keywords



Index: dbox-keywords.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-keywords.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dbox-keywords.c	24 Feb 2006 17:33:48 -0000	1.2
+++ dbox-keywords.c	30 May 2006 08:22:29 -0000	1.3
@@ -61,7 +61,7 @@
 		/* look up the position where to insert it */
 		map = array_get_modifyable(&file->idx_file_keywords, &count);
 		pos = idx == 0 ? map :
-			bsearch_insert_pos(line, map, count, sizeof(*map),
+			bsearch_insert_pos(&kw, map, count, sizeof(*map),
 					   dbox_keyword_map_compare);
 		array_insert(&file->idx_file_keywords, pos - map, &kw, 1);
 		array_append(&file->file_idx_keywords, &kw.index_idx, 1);



More information about the dovecot-cvs mailing list