From: Marko Kovacevic Date: Tue, 6 Nov 2018 10:28:34 +0000 (+0000) Subject: examples/fips_validation: fix unitialized variables X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9252e81a9fc31fcad44132fde54b2e9cf8cb658f;p=dpdk.git 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 --- diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index 85f54cbf0f..e7559c6336 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;