summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kovacevic <marko.kovacevic@intel.com>2018-11-06 10:28:34 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-11-06 12:13:49 +0100
commit9252e81a9fc31fcad44132fde54b2e9cf8cb658f (patch)
tree070cfa6f61cfb13a200ad36ce6e0856b23a96c1c
parentc59b06294fb4531792a4c74ca63fa79a4cb53457 (diff)
downloaddpdk-9252e81a9fc31fcad44132fde54b2e9cf8cb658f.zip
dpdk-9252e81a9fc31fcad44132fde54b2e9cf8cb658f.tar.gz
dpdk-9252e81a9fc31fcad44132fde54b2e9cf8cb658f.tar.xz
examples/fips_validation: fix unitialized variables
Fixed compilation issue with variable which may be used uninitialized. Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing") Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
-rw-r--r--examples/fips_validation/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c
index 85f54cb..e7559c6 100644
--- a/examples/fips_validation/main.c
+++ b/examples/fips_validation/main.c
@@ -887,9 +887,9 @@ fips_mct_tdes_test(void)
#define TDES_EXTERN_ITER 400
#define TDES_INTERN_ITER 10000
struct fips_val val, val_key;
- uint8_t prev_out[TDES_BLOCK_SIZE];
- uint8_t prev_prev_out[TDES_BLOCK_SIZE];
- uint8_t prev_in[TDES_BLOCK_SIZE];
+ uint8_t prev_out[TDES_BLOCK_SIZE] = {0};
+ uint8_t prev_prev_out[TDES_BLOCK_SIZE] = {0};
+ uint8_t prev_in[TDES_BLOCK_SIZE] = {0};
uint32_t i, j, k;
int ret;