From: Timo Sirainen Date: Thu, 9 Oct 2008 10:52:42 +0000 (+0300) Subject: Shared mailboxes: Don't crash in some systems when debug logging NULL root_dir. X-Git-Tag: 1.2.alpha3~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06f2599faace2943684f7b3d0de2bda6c60457c8;p=thirdparty%2Fdovecot%2Fcore.git Shared mailboxes: Don't crash in some systems when debug logging NULL root_dir. --HG-- branch : HEAD --- diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index f810ce289a..20d96554b9 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -203,7 +203,8 @@ void mailbox_list_init(struct mailbox_list *list, struct mail_namespace *ns, 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,