diff --git a/imap/conversations.c b/imap/conversations.c index 936eae33f6..6e91b8acf0 100644 --- a/imap/conversations.c +++ b/imap/conversations.c @@ -465,10 +465,9 @@ EXPORTED int conversations_open_user(const char *userid, int shared, EXPORTED int conversations_open_mbox(const char *mboxname, int shared, struct conversations_state **statep) { char *path = conversations_getmboxpath(mboxname); - int r; if (!path) return IMAP_MAILBOX_BADNAME; char *userid = mboxname_to_userid(mboxname); - r = conversations_open_path(path, userid, shared, statep); + int r = conversations_open_path(path, userid, shared, statep); free(userid); free(path); return r;