]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Crashfix
authorTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 04:06:59 +0000 (07:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 04:06:59 +0000 (07:06 +0300)
--HG--
branch : HEAD

src/lib-storage/index/mbox/mbox-list.c

index 44f35cf5763a24c90d7061b3917f783d7dd49ecb..2d2db376dfd39bd6f82dd3e3136042393683fb56 100644 (file)
@@ -330,7 +330,7 @@ static struct mailbox_list *mbox_list_inbox(struct mailbox_list_context *ctx)
 {
        struct stat st;
 
-       if (ctx->dir->virtual_path != NULL)
+       if (ctx->dir != NULL && ctx->dir->virtual_path != NULL)
                ctx->next = mbox_list_path;
        else
                ctx->next = mbox_list_next;