dovecot-2.1: Make static analyzer happier.

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 8 23:59:16 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/b43bbf9b705d
changeset: 13678:b43bbf9b705d
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 09 00:09:35 2011 +0200
description:
Make static analyzer happier.

diffstat:

 src/lib-storage/list/mailbox-list-index-sync.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 825a122eb9d3 -r b43bbf9b705d src/lib-storage/list/mailbox-list-index-sync.c
--- a/src/lib-storage/list/mailbox-list-index-sync.c	Tue Nov 08 23:45:05 2011 +0200
+++ b/src/lib-storage/list/mailbox-list-index-sync.c	Wed Nov 09 00:09:35 2011 +0200
@@ -98,6 +98,7 @@
 	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 {


More information about the dovecot-cvs mailing list