]> granicus.if.org Git - neomutt/commitdiff
Do not attempt to parse idata->ctx->path if an explicit path is given
authorBrendan Cully <brendan@kublai.com>
Wed, 11 Apr 2007 14:37:53 +0000 (07:37 -0700)
committerBrendan Cully <brendan@kublai.com>
Wed, 11 Apr 2007 14:37:53 +0000 (07:37 -0700)
imap/util.c

index fff96e22997608c6541aa6bf322f9321a0d5535a..cd3b3e788196654efe339191ddeb854abb38a2e3 100644 (file)
@@ -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);
   }