From: Dr. Stephen Henson Date: Wed, 24 Mar 2010 23:42:20 +0000 (+0000) Subject: initialise buf if wrong_info not used X-Git-Tag: OpenSSL_1_0_0~9 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=cd15a0528f806808365ea834b63588f16a84f8dc initialise buf if wrong_info not used --- diff --git a/engines/e_chil.c b/engines/e_chil.c index 3cb1386eed..30693353d1 100644 --- a/engines/e_chil.c +++ b/engines/e_chil.c @@ -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) {