From ec8263d88bb0ec31e8119fd13dee366a1b2f0f3c Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Mon, 10 Apr 2017 17:10:14 +0900 Subject: Fix unreachable code Change-Id: I4ee12f22cda7e1b0386f74476a6a48380ddebe2b Signed-off-by: Jiwoong Im --- client/ug-client.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client/ug-client.c b/client/ug-client.c index d5fbac3..eaac938 100644 --- a/client/ug-client.c +++ b/client/ug-client.c @@ -164,8 +164,15 @@ void _ug_client_result_cb(ui_gadget_h ug, app_control_h reply, void *priv) char* value = NULL; int result; - if (!ug || !priv) + if (!ug) { + LOGE("ug is null"); + return; + } + + if (!priv) { + LOGE("appdata is null"); return; + } ret = app_control_get_extra_data(reply, UG_APP_CONTROL_DATA_RESULT, &value); if ((ret == APP_CONTROL_ERROR_NONE) && (value)) { @@ -177,10 +184,6 @@ void _ug_client_result_cb(ui_gadget_h ug, app_control_h reply, void *priv) } ad = priv; - if (!ad) { - LOGE("appdata is null"); - return; - } ret = app_control_reply_to_launch_request(reply, ad->request, (app_control_result_e)result); if (ret != APP_CONTROL_ERROR_NONE) -- cgit v1.2.3