properly initialize memory to 0

This commit is contained in:
Klas Lindfors
2014-02-08 21:16:37 +01:00
parent f2c7fb4497
commit b19655496d
+1 -1
View File
@@ -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) { static bool parse_key(char *key_arg, unsigned char *key, int verbose) {
int i; int i;
char key_part[4]; char key_part[4] = {0};
int key_len = strlen(key_arg); int key_len = strlen(key_arg);
if(key_len != KEY_LEN * 2) { if(key_len != KEY_LEN * 2) {