From: Ji-hoon Lee Date: Thu, 11 Oct 2018 06:33:43 +0000 (+0900) Subject: Fix defects detected by static analysis tool X-Git-Tag: submit/tizen/20190213.101901~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F191069%2F2;p=platform%2Fcore%2Fuifw%2Fmulti-assistant.git Fix defects detected by static analysis tool Change-Id: I315b322be5fbecaa814bf9bfb404e1d626447804 Signed-off-by: Ji-hoon Lee --- diff --git a/client/ma.c b/client/ma.c index 816d3ec..b0b432a 100644 --- a/client/ma.c +++ b/client/ma.c @@ -231,7 +231,9 @@ int ma_deinitialize(void) } ma_state_e state; - ma_client_get_client_state(g_ma, &state); + if (0 != ma_client_get_client_state(g_ma, &state)) { + SLOG(LOG_ERROR, TAG_MAC, "[ERROR] A handle is not available"); //LCOV_EXCL_LINE + } /* check state */ switch (state) { diff --git a/client/ma_ui.c b/client/ma_ui.c index 053c51c..44b00b0 100644 --- a/client/ma_ui.c +++ b/client/ma_ui.c @@ -233,7 +233,9 @@ int ma_ui_deinitialze(void) } ma_state_e state; - ma_ui_client_get_client_state(g_ma_ui, &state); + if (0 != ma_ui_client_get_client_state(g_ma_ui, &state)) { + SLOG(LOG_ERROR, TAG_MAUI, "[UI ERROR] A handle is not available"); + } /* check state */ switch (state) {