]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Don't try to create /dovecot.mailbox.index when indexes are disabled.
authorTimo Sirainen <tss@iki.fi>
Mon, 21 Mar 2011 17:16:14 +0000 (19:16 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 21 Mar 2011 17:16:14 +0000 (19:16 +0200)
src/lib-storage/mailbox-list.c

index 385f15e2ab79a9433142f4edccb1e46331446b04..7295c41ea5a5ad41269ffaf9ed7fbf0dfd2ef091 100644 (file)
@@ -1111,7 +1111,7 @@ static bool mailbox_list_init_changelog(struct mailbox_list *list)
        /* don't do this in mailbox_list_create(), because _get_path() might be
           overridden by storage (mbox). */
        path = mailbox_list_get_path(list, NULL, MAILBOX_LIST_PATH_TYPE_INDEX);
-       if (path == NULL)
+       if (*path == '\0')
                return FALSE;
 
        path = t_strconcat(path, "/"MAILBOX_LOG_FILE_NAME, NULL);