From b7dabf89bf68d7feb8670ea34e0a4c58f190a51b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 3 Nov 2013 21:47:46 +0200 Subject: [PATCH] Make static analyzer happier. --- src/doveadm/dsync/dsync-mailbox-tree-sync.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3