X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pgp.c;h=1e1d2b58e6d38847c314fa0be0c520dccfb6a658;hb=000b7ffd7d9cc9cfd9395727227bcbadbe8cdb18;hp=7fdd5e9f4d29b834f055a9e889e90b4fc9013177;hpb=841a368ddea400022328f35dd8c7a3eb6f543892;p=apps%2Fmadmutt.git diff --git a/pgp.c b/pgp.c index 7fdd5e9..1e1d2b5 100644 --- a/pgp.c +++ b/pgp.c @@ -362,14 +362,13 @@ void pgp_application_pgp_handler (BODY * m, STATE * s) state_attach_puts (_("[-- End of PGP output --]\n\n"), s); } } - } - /* treat empty result as sign of failure */ - if (pgpout !=NULL) - if (! ftell(pgpout)) { - mutt_error _("Could not decrypt PGP message"); - goto out; + /* treat empty result as sign of failure */ + if (!(pgpout && ftell (pgpout))) { + mutt_error _("Could not decrypt PGP message"); + goto out; } + } /* * Now, copy cleartext to the screen. NOTE - we expect that PGP