examples/fips_validation: fix uninitialized access
authorMarko Kovacevic <marko.kovacevic@intel.com>
Wed, 7 Nov 2018 12:00:06 +0000 (12:00 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 7 Nov 2018 13:53:36 +0000 (14:53 +0100)
Fixing a bug raised in coverity using uninitialized value.

Coverity issue: 325881
Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing")

Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
examples/fips_validation/fips_validation_tdes.c

index 5064ff3..15ee434 100644 (file)
@@ -202,7 +202,7 @@ parse_test_tdes_writeback(struct fips_val *val)
 static int
 writeback_tdes_hex_str(const char *key, char *dst, struct fips_val *val)
 {
-       struct fips_val tmp_val;
+       struct fips_val tmp_val = {0};
 
        tmp_val.len = 8;