]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Make static analyzer happier.
authorTimo Sirainen <tss@iki.fi>
Sun, 3 Nov 2013 19:47:46 +0000 (21:47 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 3 Nov 2013 19:47:46 +0000 (21:47 +0200)
src/doveadm/dsync/dsync-mailbox-tree-sync.c

index 841d88190b895929e8dae4da8f4033b0fe002369..abb42391f431bc89ca52753b3c4b54eb512ccc5f 100644 (file)
@@ -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