]> granicus.if.org Git - mutt/commitdiff
Fixing a mutt -p segfault.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 17 Aug 1999 11:59:31 +0000 (11:59 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 17 Aug 1999 11:59:31 +0000 (11:59 +0000)
postpone.c

index bf63032ba65d9a440cf91ea5e537464e98122632..3da017194fe284523627162c31e72b17ce77df5b 100644 (file)
@@ -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)