From 2651d48d2439f9734af0caa9fea5040e9ce115bc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 25 May 2008 22:31:10 +0300 Subject: [PATCH] Don't crash if subscribed mailbox begins with hierarchy separator. --HG-- branch : HEAD --- src/lib-storage/mailbox-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/mailbox-tree.c b/src/lib-storage/mailbox-tree.c index 79a01b9056..a43382d5e1 100644 --- a/src/lib-storage/mailbox-tree.c +++ b/src/lib-storage/mailbox-tree.c @@ -200,7 +200,7 @@ mailbox_tree_iterate_next(struct mailbox_tree_iterate_context *ctx, str_truncate(ctx->path_str, ctx->parent_pos); if (ctx->first_child) { ctx->first_child = FALSE; - if (ctx->parent_pos != 0) { + if (node->parent != NULL) { str_append_c(ctx->path_str, ctx->separator); ctx->parent_pos++; } -- 2.47.3