]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: imapc_untagged_lsub() - Extract tree variable
authorMarco Bettini <marco.bettini@open-xchange.com>
Mon, 14 Jul 2025 10:01:05 +0000 (10:01 +0000)
committerMarco Bettini <marco.bettini@open-xchange.com>
Mon, 14 Jul 2025 10:23:21 +0000 (10:23 +0000)
src/lib-storage/index/imapc/imapc-list.c

index 746896e3f614ad0e202e09186c0924f87525549b..b40eddf01116e08ac26078e947e7d278a41fa6a7 100644 (file)
@@ -287,9 +287,11 @@ static void imapc_untagged_lsub(const struct imapc_untagged_reply *reply,
                /* we haven't asked for the separator yet */
                return;
        }
-       node = imapc_list_update_tree(list, list->tmp_subscriptions != NULL ?
-                                     list->tmp_subscriptions :
-                                     list->list.subscriptions, args);
+       struct mailbox_tree_context *tree =
+               list->tmp_subscriptions != NULL ?
+               list->tmp_subscriptions :
+               list->list.subscriptions;
+       node = imapc_list_update_tree(list, tree, args);
        if (node != NULL) {
                if ((node->flags & MAILBOX_NOSELECT) == 0)
                        node->flags |= MAILBOX_SUBSCRIBED;