From bebe44ea601068912e4e1743f9cfe2abcbb334e8 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 31 Jan 2003 00:12:02 +0000 Subject: [PATCH] Fix #1442 (thanks, Dale); properly initialize some pointers which could otherwise lead to crashes. --- pgp.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pgp.c b/pgp.c index bb48f4d0..1af91c23 100644 --- a/pgp.c +++ b/pgp.c @@ -367,13 +367,10 @@ void pgp_application_pgp_handler (BODY *m, STATE *s) FGETCONV *fc; int c; rewind (pgpout); + state_set_prefix (s); fc = fgetconv_open (pgpout, "utf-8", Charset, 0); while ((c = fgetconv (fc)) != EOF) - { - state_putc (c, s); - if (c == '\n' && s->prefix) - state_puts (s->prefix, s); - } + state_prefix_putc (c, s); fgetconv_close (&fc); } @@ -1021,7 +1018,7 @@ char *pgp_findKeys (ADDRESS *to, ADDRESS *cc, ADDRESS *bcc) ADDRESS **last = &tmp; ADDRESS *p, *q; int i; - pgp_key_t k_info, key; + pgp_key_t k_info = NULL, key = NULL; const char *fqdn = mutt_fqdn (1); -- 2.50.1