aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/screen_utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c
index 5e534a12e..b6141216c 100644
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
@@ -116,9 +116,8 @@ screen_read_password(WINDOW *w, const char *prompt)
colors_use(w, COLOR_STATUS_ALERT);
if (prompt == NULL)
- ret = wreadln_masked(w, _("Password: "), NULL, COLS, NULL, NULL);
- else
- ret = wreadln_masked(w, prompt, NULL, COLS, NULL, NULL);
+ prompt = _("Password: ");
+ ret = wreadln_masked(w, prompt, NULL, COLS, NULL, NULL);
curs_set(0);
return ret;