]> granicus.if.org Git - neomutt/commitdiff
Minor nit: if you enter the wrong key ID at Mutt's prompt,
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 27 Aug 1998 08:41:07 +0000 (08:41 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 27 Aug 1998 08:41:07 +0000 (08:41 +0000)
Mutt should erase the old value --- otherwise people might
think it has just hung there. (From Liviu Daia.)

pgpkey.c

index 9cb2a61eb61bd1d1fe1e0db15343662f627f74f6..475a118be49036f04da43f103a9a4b00585b9916 100644 (file)
--- 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;