dovecot-2.2: Make static analyzer happier.

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 3 21:47:52 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/27c7f25b1f27
changeset: 16927:27c7f25b1f27
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 03 21:47:46 2013 +0200
description:
Make static analyzer happier.

diffstat:

 src/doveadm/dsync/dsync-mailbox-tree-sync.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r c4fb4637a732 -r 27c7f25b1f27 src/doveadm/dsync/dsync-mailbox-tree-sync.c
--- a/src/doveadm/dsync/dsync-mailbox-tree-sync.c	Sun Nov 03 21:45:37 2013 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-tree-sync.c	Sun Nov 03 21:47:46 2013 +0200
@@ -424,6 +424,9 @@
 	struct dsync_mailbox_node *parent;
 	const char *name, *other_name;
 
+	i_assert(node != NULL);
+	i_assert(other_node != NULL);
+
 	/* move/rename node in the tree, so that its position/name is identical
 	   to other_node (in other_tree). temp_node's name is changed to
 	   temporary name (i.e. it assumes that node's name becomes temp_node's


More information about the dovecot-cvs mailing list