[Example/FilterPerformanceProfile] Fix coverity analysis error 1029509
authorWook Song <wook16.song@samsung.com>
Fri, 21 Sep 2018 02:33:59 +0000 (11:33 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Mon, 24 Sep 2018 13:08:03 +0000 (22:08 +0900)
This patch adds an initialization of a structure variable to fix the
coverity analysis error 1029509: Uninitialized scalar variable.

Signed-off-by: Wook Song <wook16.song@samsung.com>
nnstreamer_example/example_filter_performance_profile/nnstreamer_example_filter_performance_profile.c

index 77ca0eb..8001286 100644 (file)
@@ -963,7 +963,7 @@ _unregister_signals (nnstrmr_app_context_t * ctx)
 int
 main (int argc, char *argv[])
 {
-  nnstrmr_app_context_t app_ctx;
+  nnstrmr_app_context_t app_ctx = {};
   gboolean ret;
   GstBus *bus;
   guint bus_watch_id;