From: Timo Sirainen Date: Mon, 30 Mar 2009 21:26:40 +0000 (-0400) Subject: index: Minor optimization. X-Git-Tag: 1.2.rc1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24ec3e51a1bd7aaf09c92a7ff7498e225796d7e0;p=thirdparty%2Fdovecot%2Fcore.git index: Minor optimization. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-index-view.c b/src/lib-index/mail-index-view.c index d6fee5d521..a30b9b904f 100644 --- a/src/lib-index/mail-index-view.c +++ b/src/lib-index/mail-index-view.c @@ -142,7 +142,7 @@ view_lookup_full(struct mail_index_view *view, uint32_t seq, /* look up the record */ rec = MAIL_INDEX_MAP_IDX(view->map, seq-1); - if (rec->uid == 0) { + if (unlikely(rec->uid == 0)) { if (!view->inconsistent) { mail_index_set_error(view->index, "Corrupted Index file %s: Record [%u].uid=0",