diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-03-24 23:42:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-03-24 23:42:30 +0000 |
commit | 5d013b6b32754d36830c89e704525a7a27bff907 (patch) | |
tree | cad1bea83d86f2803691c650a5536348f3498109 /engines | |
parent | ee91323f52f27d3fe6fad16463fa580be6bfd358 (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 3a07076b4f..68405b394b 100644 --- a/engines/e_chil.c +++ b/engines/e_chil.c @@ -1316,6 +1316,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) { |