From: Timo Sirainen Date: Sun, 3 Nov 2013 19:47:46 +0000 (+0200) Subject: Make static analyzer happier. X-Git-Tag: 2.2.7~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7dabf89bf68d7feb8670ea34e0a4c58f190a51b;p=thirdparty%2Fdovecot%2Fcore.git Make static analyzer happier. --- diff --git a/src/doveadm/dsync/dsync-mailbox-tree-sync.c b/src/doveadm/dsync/dsync-mailbox-tree-sync.c index 841d88190b..abb42391f4 100644 --- a/src/doveadm/dsync/dsync-mailbox-tree-sync.c +++ b/src/doveadm/dsync/dsync-mailbox-tree-sync.c @@ -424,6 +424,9 @@ sync_rename_node(struct dsync_mailbox_tree_sync_ctx *ctx, 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