build_ca: Initialise get_passphrase() correctly

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-02-12 02:37:34 +00:00
parent 2dd2767922
commit 88557aae8c
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1272,9 +1272,9 @@ Could not disable echo. Password will be shown on screen!"
# Get passphrase
get_passphrase() {
t="$1"; shift || die "password malfunction"
while :; do
r=""
t="$1"; shift || die "password malfunction"
printf '\n%s' "$*"
hide_read_pass r