From b19655496d1323a32973771e00ec23e7d388c51a Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Sat, 8 Feb 2014 21:16:37 +0100 Subject: [PATCH] properly initialize memory to 0 --- yubico-piv-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yubico-piv-tool.c b/yubico-piv-tool.c index edb7985..29c0ab0 100644 --- a/yubico-piv-tool.c +++ b/yubico-piv-tool.c @@ -1265,7 +1265,7 @@ static void dump_hex(const unsigned char *buf, unsigned int len) { static bool parse_key(char *key_arg, unsigned char *key, int verbose) { int i; - char key_part[4]; + char key_part[4] = {0}; int key_len = strlen(key_arg); if(key_len != KEY_LEN * 2) {