From: Marco Bettini Date: Mon, 14 Jul 2025 10:01:05 +0000 (+0000) Subject: imapc: imapc_untagged_lsub() - Extract tree variable X-Git-Tag: 2.4.2~666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef82b1a4b800d704509159790dc38b06add417e;p=thirdparty%2Fdovecot%2Fcore.git imapc: imapc_untagged_lsub() - Extract tree variable --- diff --git a/src/lib-storage/index/imapc/imapc-list.c b/src/lib-storage/index/imapc/imapc-list.c index 746896e3f6..b40eddf011 100644 --- a/src/lib-storage/index/imapc/imapc-list.c +++ b/src/lib-storage/index/imapc/imapc-list.c @@ -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;