]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Make static analyzer happier.
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Nov 2011 22:09:35 +0000 (00:09 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Nov 2011 22:09:35 +0000 (00:09 +0200)
src/lib-storage/list/mailbox-list-index-sync.c

index 1840a7d9869aad5188f94568dc17aeaf3812d2b1..a21325895b8dc62db18bafdb2b6e19a63e804803 100644 (file)
@@ -98,6 +98,7 @@ mailbox_list_index_sync_name(struct mailbox_list_index_sync_context *ctx,
        node = parent;
        if (path[i] == NULL) {
                /* the entire path exists */
+               i_assert(node != NULL);
                if (!mail_index_lookup_seq(ctx->view, node->uid, &seq))
                        i_panic("mailbox list index: lost uid=%u", node->uid);
        } else {