Fix svace issue 98/257598/1 accepted/tizen/6.5/unified/20211028.122207 accepted/tizen/unified/20210509.123827 accepted/tizen/unified/20210608.131214 submit/tizen/20210428.062907 submit/tizen/20210506.010918 submit/tizen/20210507.005054 submit/tizen/20210513.034723 submit/tizen/20210513.045159 submit/tizen/20210604.014750 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
authorInki Dae <inki.dae@samsung.com>
Wed, 28 Apr 2021 05:15:49 +0000 (14:15 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 28 Apr 2021 05:15:49 +0000 (14:15 +0900)
This patch initializes uninitialized two variables.

Change-Id: I00aadafa97738a6f7c13417856c906556b92ee9a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_mlapi.cpp

index 213bc8d..397a029 100644 (file)
@@ -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: