From 7300c253bdfce22ee5bd2be3024dd88fef4d0d55 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 1 Sep 2008 15:31:20 +0300 Subject: [PATCH] Thread index: Minor optimization. --HG-- branch : HEAD --- src/lib-storage/index/index-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/index/index-thread.c b/src/lib-storage/index/index-thread.c index 83e51844c8..26964af0af 100644 --- a/src/lib-storage/index/index-thread.c +++ b/src/lib-storage/index/index-thread.c @@ -430,11 +430,11 @@ static void mail_thread_cache_update_adds(struct mail_thread_mailbox *tbox, /* everything removed successfully, add the new messages. all of them should already be in msgid_map. */ - msgid_map = array_get(tbox->msgid_map, &map_count); uids = array_get(added_uids, &uid_count); if (uid_count == 0) return; + msgid_map = array_get(tbox->msgid_map, &map_count); (void)bsearch_insert_pos(&uids[0].seq1, msgid_map, map_count, sizeof(*msgid_map), msgid_map_cmp, &j); i_assert(j < map_count); -- 2.47.3