mirror of
https://github.com/openssl/openssl.git
synced 2024-11-25 19:13:48 +08:00
initialise buf if wrong_info not used
This commit is contained in:
parent
a3a06e6543
commit
f2e8488b85
@ -1313,6 +1313,8 @@ static int hwcrhk_insert_card(const char *prompt_info,
|
||||
if (wrong_info && *wrong_info)
|
||||
BIO_snprintf(buf, sizeof(buf)-1,
|
||||
"Current card: \"%s\"\n", wrong_info);
|
||||
else
|
||||
buf[0] = 0;
|
||||
ok = UI_dup_info_string(ui, buf);
|
||||
if (ok >= 0 && prompt_info)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user