From: pibr Date: Fri, 4 Jun 2021 16:16:26 +0000 (+0000) Subject: dpdk: silence coverity warning on use of uninitialized value X-Git-Tag: v22.02-rc0~345 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=d838e533f1f8f5335ceadb193fa9554f44d04fbf dpdk: silence coverity warning on use of uninitialized value Type: fix Signed-off-by: Piotr Bronowski Change-Id: I76923ad5035498aae821db4fd42a127617476fbb --- diff --git a/src/plugins/dpdk/cryptodev/cryptodev.c b/src/plugins/dpdk/cryptodev/cryptodev.c index 246951d396c..d52fa407ec5 100644 --- a/src/plugins/dpdk/cryptodev/cryptodev.c +++ b/src/plugins/dpdk/cryptodev/cryptodev.c @@ -881,6 +881,7 @@ cryptodev_get_common_capabilities () const struct rte_cryptodev_capabilities *cap; const struct rte_cryptodev_capabilities *dev_caps; + clib_memset (&tmp_cap, 0, sizeof (cryptodev_capability_t)); if (vec_len (cmt->cryptodev_inst) == 0) return; dev_inst = vec_elt_at_index (cmt->cryptodev_inst, 0);