From: Brendan Cully Date: Tue, 9 Aug 2005 16:55:01 +0000 (+0000) Subject: Don't ftell pgp output file if there isn't one. Closes: #2032. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9015f8946f135c24db8ed2805a6e56918af8e649;p=neomutt Don't ftell pgp output file if there isn't one. Closes: #2032. --- diff --git a/pgp.c b/pgp.c index 515c3e596..564ecfc82 100644 --- a/pgp.c +++ b/pgp.c @@ -381,7 +381,7 @@ void pgp_application_pgp_handler (BODY *m, STATE *s) } /* treat empty result as sign of failure */ - if (! ftell(pgpout)) + if (!(pgpout && ftell(pgpout))) { mutt_error _("Could not decrypt PGP message"); pgp_void_passphrase ();