summaryrefslogtreecommitdiffstats
path: root/postpone.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-08-17 11:59:31 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-08-17 11:59:31 +0000
commitff8d7bbc408757977c8eb9ba3fadec4bd9fa3a76 (patch)
tree598eefdf5e7ecb68eb0912acfa0f381074707988 /postpone.c
parent5c8c841ebe8020d1f3d8ead2a7cd848a50194e74 (diff)
Fixing a mutt -p segfault.
Diffstat (limited to 'postpone.c')
-rw-r--r--postpone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/postpone.c b/postpone.c
index bf63032b..3da01719 100644
--- a/postpone.c
+++ b/postpone.c
@@ -206,7 +206,7 @@ int mutt_get_postponed (CONTEXT *ctx, HEADER *hdr, HEADER **cur, char *fcc, size
/* if we're in an IMAP folder and the postponed folder is also IMAP, we may
* need to take steps to avoid opening an additional connection to the same
* server. */
- if ((ctx->magic == M_IMAP) && mx_is_imap (Postponed))
+ if ((ctx && ctx->magic == M_IMAP) && mx_is_imap (Postponed))
{
strfcpy (curpath, ctx->path, sizeof (curpath));
if (imap_select_mailbox (ctx, Postponed) < 0)