dovecot-1.2: Shared mailboxes: Don't crash in some systems when ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 9 13:52:46 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/7db59981c1a0
changeset: 8258:7db59981c1a0
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 09 13:52:42 2008 +0300
description:
Shared mailboxes: Don't crash in some systems when debug logging NULL root_dir.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/mailbox-list.c |    3 ++-

diffs (13 lines):

diff -r d30f0525d457 -r 7db59981c1a0 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Thu Oct 09 13:05:52 2008 +0300
+++ b/src/lib-storage/mailbox-list.c	Thu Oct 09 13:52:42 2008 +0300
@@ -203,7 +203,8 @@ void mailbox_list_init(struct mailbox_li
 
 	if ((flags & MAILBOX_LIST_FLAG_DEBUG) != 0) {
 		i_info("%s: root=%s, index=%s, control=%s, inbox=%s",
-		       list->name, list->set.root_dir,
+		       list->name,
+		       list->set.root_dir == NULL ? "" : list->set.root_dir,
 		       list->set.index_dir == NULL ? "" : list->set.index_dir,
 		       list->set.control_dir == NULL ?
 		       "" : list->set.control_dir,


More information about the dovecot-cvs mailing list