From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id BFADA2082 for ; Tue, 6 Nov 2018 11:28:38 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2018 02:28:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,471,1534834800"; d="scan'208";a="101917205" Received: from silpixa00399502.ir.intel.com (HELO silpixa00399502.ger.corp.intel.com) ([10.237.223.218]) by fmsmga002.fm.intel.com with ESMTP; 06 Nov 2018 02:28:36 -0800 From: Marko Kovacevic To: dev@dpdk.org Cc: thomas@monjalon.net, akhil.goyal@nxp.com, ferruh.yigit@intel.com, xuemingx.zhang@intel.com, Marko Kovacevic Date: Tue, 6 Nov 2018 10:28:34 +0000 Message-Id: <20181106102834.6613-1-marko.kovacevic@intel.com> X-Mailer: git-send-email 2.9.5 Subject: [dpdk-dev] [PATCH] examples/fips_validation: fix compilation issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2018 10:28:39 -0000 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 --- 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