* [dpdk-dev] [PATCH] examples/fips_validation: fix compilation issue
@ 2018-11-06 10:28 Marko Kovacevic
2018-11-06 11:16 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Marko Kovacevic @ 2018-11-06 10:28 UTC (permalink / raw)
To: dev; +Cc: thomas, akhil.goyal, ferruh.yigit, xuemingx.zhang, Marko Kovacevic
Fixed compilation issue with variable which may
be used uninitialized
Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing")
Cc: marko.kovacevic@intel.com
Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
---
examples/fips_validation/main.c | 6 +++---
1 file 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;
--
2.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-06 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-06 10:28 [dpdk-dev] [PATCH] examples/fips_validation: fix compilation issue Marko Kovacevic
2018-11-06 11:16 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).