]> granicus.if.org Git - mutt/commitdiff
Remove an unnecessary ENTER_STATE allocation.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 8 Dec 2000 10:38:30 +0000 (10:38 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 8 Dec 2000 10:38:30 +0000 (10:38 +0000)
curs_lib.c

index 8b658744845f95b2501350833b890000372908e3..bf2924bbfdfa992291f20c1d952ebe00f5a02b7a 100644 (file)
@@ -120,13 +120,11 @@ int _mutt_get_field (/* const */ char *field, char *buf, size_t buflen, int comp
 int mutt_get_password (char *msg, char *buf, size_t buflen)
 {
   int rc;
-  ENTER_STATE *es = mutt_new_enter_state();
   
   CLEARLINE (LINES-1);
   addstr (msg);
   rc = mutt_enter_string (buf, buflen, LINES - 1, mutt_strlen (msg), M_PASS);
   CLEARLINE (LINES-1);
-  mutt_free_enter_state (&es);
   return (rc);
 }