summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2017-04-10 17:10:14 +0900
committerJiwoong Im <jiwoong.im@samsung.com>2017-04-10 17:10:14 +0900
commitec8263d88bb0ec31e8119fd13dee366a1b2f0f3c (patch)
tree07c6520cd0f0ecea403ea07ee201d384b411bce1
parent8c41cbf1ab0f3854dd26d3741701adfdc84c9e45 (diff)
downloadui-gadget-1-ec8263d88bb0ec31e8119fd13dee366a1b2f0f3c.tar.gz
ui-gadget-1-ec8263d88bb0ec31e8119fd13dee366a1b2f0f3c.tar.bz2
ui-gadget-1-ec8263d88bb0ec31e8119fd13dee366a1b2f0f3c.zip
Fix unreachable code
Change-Id: I4ee12f22cda7e1b0386f74476a6a48380ddebe2b Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r--client/ug-client.c13
1 files 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)