X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-crypt%2Fpgp.c;h=d0104a7c740109102c0e941ef01fb8a2c8eebc11;hb=363a0a082dba5ca0865acdbf30e1806e0ecb60f6;hp=ea63f2c76eb33833e0589e0352bacef8d8deb146;hpb=9ed7a487e3a922f2cbb222961c2c9710c3a65f91;p=apps%2Fmadmutt.git diff --git a/lib-crypt/pgp.c b/lib-crypt/pgp.c index ea63f2c..d0104a7 100644 --- a/lib-crypt/pgp.c +++ b/lib-crypt/pgp.c @@ -595,7 +595,7 @@ static void pgp_extract_keys_from_attachment (FILE * fp, BODY * top) tempfp = m_tempfile(tempfname, sizeof(tempfname), NONULL(Tempdir), NULL); if (tempfp == NULL) { - mutt_perror (tempfname); + mutt_perror (_("Can't create temporary file")); return; } @@ -649,14 +649,14 @@ BODY *pgp_decrypt_part (BODY * a, STATE * s, FILE * fpout, BODY * p) int rv; pgperr = m_tempfile(pgperrfile, sizeof(pgperrfile), NONULL(Tempdir), NULL); - if (pgperr == NULL) { + if (!pgperr) { mutt_perror (pgperrfile); return NULL; } unlink (pgperrfile); pgptmp = m_tempfile(pgptmpfile, sizeof(pgptmpfile), NONULL(Tempdir), NULL); - if (!pgptmp == NULL) { + if (!pgptmp) { mutt_perror (pgptmpfile); m_fclose(&pgperr); return NULL; @@ -758,7 +758,7 @@ int pgp_decrypt_mime (FILE * fpin, FILE ** fpout, BODY * b, BODY ** cur) s.fpin = fpin; *fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); if (*fpout == NULL) { - mutt_perror (tempfile); + mutt_perror (_("Can't create temporary file")); return (-1); } unlink (tempfile); @@ -1115,7 +1115,7 @@ BODY *pgp_encrypt_message (BODY * a, char *keylist, int sign) fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); if (fpout == NULL) { - mutt_perror (tempfile); + mutt_perror (_("Can't create temporary file")); return (NULL); }