]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
crashfix
authorTimo Sirainen <tss@iki.fi>
Mon, 20 Oct 2003 07:09:35 +0000 (10:09 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 20 Oct 2003 07:09:35 +0000 (10:09 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-storage.c

index 81aa82df54cd014d4192d97ceb5929df04c07e85..2baeec7544e3c71e73035c4bde1a36633e72d37b 100644 (file)
@@ -331,7 +331,8 @@ static int create_index_dir(struct mail_storage *storage, const char *name)
 
        if (strcmp(storage->index_dir, storage->dir) == 0 ||
            (strcmp(name, "INBOX") == 0 &&
-            strcmp(storage->index_dir, storage->inbox_file) == 0))
+            (storage->inbox_file == NULL ||
+             strcmp(storage->index_dir, storage->inbox_file) == 0)))
                return TRUE;
 
        dir = t_strconcat(storage->index_dir, "/"MAILDIR_FS_SEP_S, name, NULL);