From 0e3d506846d6ebcac0239f150618bf86dee34438 Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Wed, 28 Apr 2021 14:15:49 +0900 Subject: [PATCH] Fix svace issue This patch initializes uninitialized two variables. Change-Id: I00aadafa97738a6f7c13417856c906556b92ee9a Signed-off-by: Inki Dae --- src/inference_engine_mlapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inference_engine_mlapi.cpp b/src/inference_engine_mlapi.cpp index 213bc8d..397a029 100644 --- a/src/inference_engine_mlapi.cpp +++ b/src/inference_engine_mlapi.cpp @@ -146,8 +146,8 @@ namespace MLAPIImpl // TODO. Set NNFW backend type and HW type properly. - ml_nnfw_type_e nnfw_type; - ml_nnfw_hw_e nnfw_hw; + ml_nnfw_type_e nnfw_type = ML_NNFW_TYPE_NNFW; + ml_nnfw_hw_e nnfw_hw = ML_NNFW_HW_ANY; switch (mPluginType) { case INFERENCE_BACKEND_NPU_VIVANTE: -- 2.34.1