[fix/svace] fix svace issue accepted/tizen/unified/20240119.154754
authorSuyeon Kim <suyeon5.kim@samsung.com>
Thu, 18 Jan 2024 02:01:58 +0000 (11:01 +0900)
committerSangjung Woo <again4you@gmail.com>
Thu, 18 Jan 2024 06:30:12 +0000 (15:30 +0900)
Fix covertiy and SVACE issue
- model_path isn't initialized. fixed it.

Signed-off-by: Suyeon Kim <suyeon5.kim@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_onnxruntime.cc

index 938246e..291511b 100644 (file)
@@ -92,7 +92,8 @@ class onnxruntime_subplugin final : public tensor_filter_subplugin
  * @brief Constructor for onnxruntime_subplugin.
  */
 onnxruntime_subplugin::onnxruntime_subplugin ()
-    : configured{ false }, session{ nullptr }, sessionOptions{ nullptr }, env{ nullptr }, memInfo{ nullptr }
+    : configured{ false }, model_path{ nullptr }, session{ nullptr },
+      sessionOptions{ nullptr }, env{ nullptr }, memInfo{ nullptr }
 {
 }