initialise buf if wrong_info not used
[openssl.git] / engines / e_chil.c
index 3cb1386..3069335 100644 (file)
@@ -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)
                        {