Commit 1d2e9727 authored by Thomas Roessler's avatar Thomas Roessler

Remove an unnecessary ENTER_STATE allocation.

parent 844a133f
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment