dovecot-1.1: Don't crash if subscribed mailbox begins with hiera...
dovecot at dovecot.org
dovecot at dovecot.org
Sun May 25 22:31:13 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/0e0054c0da66
changeset: 7553:0e0054c0da66
user: Timo Sirainen <tss at iki.fi>
date: Sun May 25 22:31:10 2008 +0300
description:
Don't crash if subscribed mailbox begins with hierarchy separator.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/mailbox-tree.c | 2 +-
diffs (12 lines):
diff -r f0600e9db643 -r 0e0054c0da66 src/lib-storage/mailbox-tree.c
--- a/src/lib-storage/mailbox-tree.c Sun May 25 16:05:09 2008 +0300
+++ b/src/lib-storage/mailbox-tree.c Sun May 25 22:31:10 2008 +0300
@@ -200,7 +200,7 @@ mailbox_tree_iterate_next(struct mailbox
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++;
}
More information about the dovecot-cvs
mailing list