From: Brendan Cully Date: Wed, 11 Apr 2007 16:25:56 +0000 (-0700) Subject: Make imap_hcache_open robust against missing idata->ctx X-Git-Tag: mutt-1-5-16-rel~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d57416893083db812613b1ff8077fec07125adf;p=mutt Make imap_hcache_open robust against missing idata->ctx --- diff --git a/ChangeLog b/ChangeLog index 0541c2ea..5f20190a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,13 @@ -2007-04-10 19:28 -0700 Brendan Cully (d12143e1a610) +2007-04-11 07:37 -0700 Brendan Cully (29faa739ed01) + + * imap/util.c: Do not attempt to parse idata->ctx->path if an explicit + path is given + +2007-04-10 20:22 -0700 Brendan Cully (429fb67340cd) + + * UPDATING, imap/imap.c, imap/imap_private.h, imap/message.c, + init.h, mutt.h: Add $message_cache_clean option to prune message + cache on sync * hcache.c: Try to unlink old header cache if open fails diff --git a/imap/util.c b/imap/util.c index cd3b3e78..785d8f3b 100644 --- a/imap/util.c +++ b/imap/util.c @@ -87,7 +87,7 @@ header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path) imap_cachepath (idata, path, mbox, sizeof (mbox)); else { - if (imap_parse_path (idata->ctx->path, &mx) < 0) + if (!idata->ctx || imap_parse_path (idata->ctx->path, &mx) < 0) return NULL; imap_cachepath (idata, mx.mbox, mbox, sizeof (mbox));