summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3adcbe)
raw | patch | inline | side by side (parent: b3adcbe)
author | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:39:01 +0000 (10:39 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:39:01 +0000 (10:39 +0200) |
If prompt is NULL, do not add a second call to wreadln_masked() with a
literal string, but assign this literal string to the variable
"prompt". This saves several bytes in the compiled binary.
literal string, but assign this literal string to the variable
"prompt". This saves several bytes in the compiled binary.
src/screen_utils.c | patch | blob | history |
diff --git a/src/screen_utils.c b/src/screen_utils.c
index 5e534a12e6f94a4738da3986a20588780a97c265..b6141216c8c19513503ee42a928152d3c921ad36 100644 (file)
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
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;