diff options
author | Kevin McCarthy <kevin@8t8.us> | 2021-09-25 14:28:18 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2021-09-25 14:38:48 -0700 |
commit | 769e50863fb2791ca3a477a02b033a9081f4bfe2 (patch) | |
tree | cc762e3d53b16addd83dc0f4c740435796188751 /pgp.c | |
parent | c0536334cd9d52aa8f86efe8dbd7ea00069256c7 (diff) |
Remove unneeded type save/restores around mutt_decode_attachment().
The type save/restore seems to have been copied around the other crypt
code calls to mutt_decode_attachment(). Remove it, because
mutt_decode_attachment() makes no such changes.
Note run_decode_and_handler() *does* need to save/restore because it
manually assigns to b->type itself.
Diffstat (limited to 'pgp.c')
-rw-r--r-- | pgp.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1061,7 +1061,6 @@ int pgp_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) STATE s; BODY *p = b; int need_decode = 0; - int saved_type; LOFF_T saved_offset; size_t saved_length; FILE *decoded_fp = NULL; @@ -1089,7 +1088,6 @@ int pgp_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) if (need_decode) { - saved_type = b->type; saved_offset = b->offset; saved_length = b->length; @@ -1129,7 +1127,6 @@ int pgp_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) bail: if (need_decode) { - b->type = saved_type; b->length = saved_length; b->offset = saved_offset; safe_fclose (&decoded_fp); |