]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
index: Minor optimization.
authorTimo Sirainen <tss@iki.fi>
Mon, 30 Mar 2009 21:26:40 +0000 (17:26 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 30 Mar 2009 21:26:40 +0000 (17:26 -0400)
--HG--
branch : HEAD

src/lib-index/mail-index-view.c

index d6fee5d521d533841013195b14cfab89fa4196e2..a30b9b904faf98b53008d815697b70421782788c 100644 (file)
@@ -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",