From 4a514fb20e04df397842cde11cc9ea92abfe9728 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 11 Jun 2010 21:39:11 +0100 Subject: [PATCH] mailbox_list_get_unexpanded_path(): Don't crash with -o mail_location=.. --HG-- branch : HEAD --- src/lib-storage/mailbox-list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index b1f61ef4d4..becf5c7a3b 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -323,6 +323,10 @@ const char *mailbox_list_get_unexpanded_path(struct mailbox_list *list, user->unexpanded_set, MAIL_STORAGE_SET_DRIVER_NAME); i_assert(mail_set != NULL); location = mail_set->mail_location; + if (*location == '1') { + /* we'll get here if using -o mail_location=.. */ + return ""; + } i_assert(*location == '0'); location++; } -- 2.47.3