]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Shared mailboxes: Don't crash in some systems when debug logging NULL root_dir.
authorTimo Sirainen <tss@iki.fi>
Thu, 9 Oct 2008 10:52:42 +0000 (13:52 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 9 Oct 2008 10:52:42 +0000 (13:52 +0300)
--HG--
branch : HEAD

src/lib-storage/mailbox-list.c

index f810ce289a531ca11388e4ac8da2ee67a3a35aa9..20d96554b95d453e1c4f5142b811b377b7217a41 100644 (file)
@@ -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,