From 9015f8946f135c24db8ed2805a6e56918af8e649 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Tue, 9 Aug 2005 16:55:01 +0000 Subject: [PATCH] Don't ftell pgp output file if there isn't one. Closes: #2032. --- pgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); -- 2.40.0