Fix static analysis issue 31/291631/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 19 Apr 2023 11:16:11 +0000 (20:16 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 19 Apr 2023 11:16:11 +0000 (20:16 +0900)
commit0e274c7ae7253df438eff9ebd3bdbe90a314174d
treed5969ba71ae2b53c33d402f20616741b4365db56
parent9c0fec2d316628214dea57d1844da6b9c372aef0
Fix static analysis issue

This patch includes this changes to resolve potential issues:
- Add code for checking return value of the function.
- Move the local variable definition to minimize the valid scope of each
variables.

Change-Id: I8b7b977d45e37eaec27177f3de4e1c5cc6e5cc37
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/stt_config_mgr.c
common/stt_engine.c
server/sttd_dbus_server.c
tests/src/stt_unittests.cpp