From f2e8488b8521e133f4f6da8dba635c57d1387990 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 24 Mar 2010 23:42:05 +0000 Subject: [PATCH] initialise buf if wrong_info not used --- engines/e_chil.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.40.0