diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-03-24 23:42:05 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-03-24 23:42:05 +0000 |
commit | f2e8488b8521e133f4f6da8dba635c57d1387990 (patch) | |
tree | 84b726dddaabcf658d5fc19fd1c070c701e324e9 /engines | |
parent | a3a06e6543bf05511cc2f508ad555a281c801326 (diff) |
initialise buf if wrong_info not used
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_chil.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |