From: Thomas Roessler Date: Thu, 27 Aug 1998 08:41:07 +0000 (+0000) Subject: Minor nit: if you enter the wrong key ID at Mutt's prompt, X-Git-Tag: mutt-0-94-5i-rel~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=805fcf41165c20f8b38ad76e8518114f9b976117;p=mutt Minor nit: if you enter the wrong key ID at Mutt's prompt, Mutt should erase the old value --- otherwise people might think it has just hung there. (From Liviu Daia.) --- diff --git a/pgpkey.c b/pgpkey.c index 9cb2a61e..475a118b 100644 --- a/pgpkey.c +++ b/pgpkey.c @@ -309,6 +309,7 @@ char *pgp_ask_for_key (struct pgp_vinfo *pgp, KEYINFO *db, char *tag, char *what FOREVER { + resp[0] = 0; if (mutt_get_field (tag, resp, sizeof (resp), M_CLEAR) != 0) return NULL;