From: Brendan Cully Date: Wed, 11 Apr 2007 14:37:53 +0000 (-0700) Subject: Do not attempt to parse idata->ctx->path if an explicit path is given X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2508e70b35f30f779d85444a671430658f49bb2c;p=neomutt Do not attempt to parse idata->ctx->path if an explicit path is given --- diff --git a/imap/util.c b/imap/util.c index fff96e229..cd3b3e788 100644 --- a/imap/util.c +++ b/imap/util.c @@ -83,13 +83,13 @@ header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path) char cachepath[LONG_STRING]; char mbox[LONG_STRING]; - if (imap_parse_path (idata->ctx->path, &mx) < 0) - return NULL; - if (path) imap_cachepath (idata, path, mbox, sizeof (mbox)); else { + if (imap_parse_path (idata->ctx->path, &mx) < 0) + return NULL; + imap_cachepath (idata, mx.mbox, mbox, sizeof (mbox)); FREE (&mx.mbox); }