From 077522fa690896a54c1323c6ff35e2084bbe828d Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 14 Nov 2018 15:22:03 +0900 Subject: [PATCH] Return the appropriate error Change-Id: I947efcb41723ce26b4e98e1871158ace7e96a647 Signed-off-by: Jihoon Kim --- service_lib/autofill_service.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/service_lib/autofill_service.c b/service_lib/autofill_service.c index 08e85c6..ac240de 100644 --- a/service_lib/autofill_service.c +++ b/service_lib/autofill_service.c @@ -438,6 +438,7 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h) char *service_name = NULL; char *service_logo_image_path = NULL; char *service_message = NULL; + int ret = AUTOFILL_ERROR_NONE; if (!h) { LOGW("parameter is NULL"); @@ -465,7 +466,7 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h) rpc_port_autofill_svc_auth_info_set_service_message(auth_info_h, service_message); rpc_port_autofill_svc_auth_info_set_service_logo_image_path(auth_info_h, service_logo_image_path); - rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_invoke(g_auth_info_cb, auth_info_h); + ret = rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_invoke(g_auth_info_cb, auth_info_h); if (app_id) free(app_id); @@ -484,7 +485,7 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h) rpc_port_autofill_svc_auth_info_destroy(auth_info_h); - return AUTOFILL_ERROR_NONE; + return ret; } // fill request @@ -554,6 +555,7 @@ EXPORT_API int autofill_service_send_fill_response(autofill_fill_response_h h) { /* create autofill response */ rpc_port_autofill_svc_fill_response_h fill_response_h; + int ret = AUTOFILL_ERROR_NONE; Eina_List *l; autofill_fill_response_group_h it; @@ -584,11 +586,11 @@ EXPORT_API int autofill_service_send_fill_response(autofill_fill_response_h h) rpc_port_autofill_svc_response_group_destroy(res_group_h); } - rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_invoke(g_fill_response_cb, fill_response_h); + ret = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_invoke(g_fill_response_cb, fill_response_h); rpc_port_autofill_svc_fill_response_destroy(fill_response_h); - return AUTOFILL_ERROR_NONE; + return ret; } EXPORT_API int autofill_service_set_commit_cb(autofill_service_commit_cb callback, void *user_data) -- 2.7.4