initialise buf if wrong_info not used
authorDr. Stephen Henson <steve@openssl.org>
Wed, 24 Mar 2010 23:42:20 +0000 (23:42 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 24 Mar 2010 23:42:20 +0000 (23:42 +0000)
engines/e_chil.c

index 3cb1386eed68e882d62ea00fba3bdddf42f7fe71..30693353d15ac6639c907e7ffc554d171e720c23 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)
                        {