[Core/HostInputService] Fix build error, 'maybe-uninitialized'
authorWook Song <wook16.song@samsung.com>
Mon, 29 Jul 2019 06:48:11 +0000 (15:48 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Mon, 29 Jul 2019 09:57:20 +0000 (18:57 +0900)
This patch fixes a build error caused by a local variable used without
initialization.

Signed-off-by: Wook Song <wook16.song@samsung.com>
core/npu-engine/src/ne-host-input-service.c

index 9c42402..06aca15 100644 (file)
@@ -154,7 +154,7 @@ static void* loopHostService (void *data)
   host_inservice_priv *npriv;
   hwmem *hwmem_ptr;
   buffer *buffer_ptr;
-  n40_data *data_for_cb;
+  n40_data *data_for_cb = NULL;
 
   npriv = (host_inservice_priv *) data;
   assert (npriv);