From: Jihoon Kim Date: Mon, 14 Feb 2022 16:41:15 +0000 (+0900) Subject: Fix control flow issue X-Git-Tag: submit/tizen/20220221.013219^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F271010%2F2;p=platform%2Fcore%2Fuifw%2Fautofill-daemon.git Fix control flow issue Branch past initialization (PW.BRANCH_PAST_INITIALIZATION) Change-Id: Ia837b43f3e74a90076e0fc3a4323f61ac70cf3e8 Signed-off-by: Jihoon Kim --- diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 4235bb0..d57c6c0 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -595,6 +595,8 @@ static void __fill_response_recv_cb(void *user_data, int context_id, rpc_port_pr // recv fill response from service char *view_id = NULL; char *app_id = NULL; + autofill_client_s *sender_client = NULL; + rpc_port_proxy_list_autofill_svc_response_group_h response_groups = NULL; rpc_port_stub_list_autofill_response_group_h res_groups = NULL; rpc_port_stub_autofill_fill_response_h fill_response_h = NULL; @@ -618,7 +620,7 @@ static void __fill_response_recv_cb(void *user_data, int context_id, rpc_port_pr rpc_port_stub_autofill_fill_response_set_view_id(fill_response_h, view_id); rpc_port_stub_autofill_fill_response_set_response_groups(fill_response_h, res_groups); - autofill_client_s *sender_client = get_autofill_client(app_id, context_id); + sender_client = get_autofill_client(app_id, context_id); if (sender_client) rpc_port_stub_AutofillAppPort_autofill_fill_response_received_cb_invoke(sender_client->fill_response_received_cb, fill_response_h); @@ -647,6 +649,7 @@ static void __auth_info_recv_cb(void *user_data, int context_id, rpc_port_proxy_ char *service_message = NULL; char *app_id = NULL; char *view_id = NULL; + autofill_client_s *sender_client = NULL; rpc_port_proxy_autofill_svc_auth_info_get_app_id(svc_auth_info_h, &app_id); rpc_port_proxy_autofill_svc_auth_info_get_view_id(svc_auth_info_h, &view_id); @@ -669,7 +672,7 @@ static void __auth_info_recv_cb(void *user_data, int context_id, rpc_port_proxy_ rpc_port_stub_autofill_auth_info_set_service_message(auth_info_h, service_message); rpc_port_stub_autofill_auth_info_set_service_logo_image_path(auth_info_h, service_logo_image_path); - autofill_client_s *sender_client = get_autofill_client(app_id, context_id); + sender_client = get_autofill_client(app_id, context_id); if (sender_client) rpc_port_stub_AutofillAppPort_autofill_auth_info_received_cb_invoke(sender_client->auth_info_cb, auth_info_h); @@ -695,6 +698,7 @@ static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_proxy { char *app_id = NULL; int error_code = 0; + autofill_client_s *sender_client = NULL; rpc_port_proxy_autofill_svc_error_info_get_app_id(svc_error_info_h, &app_id); rpc_port_proxy_autofill_svc_error_info_get_error_code(svc_error_info_h, &error_code); @@ -705,7 +709,7 @@ static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_proxy rpc_port_stub_autofill_error_info_set_app_id(error_info_h, app_id); rpc_port_stub_autofill_error_info_set_error_code(error_info_h, error_code); - autofill_client_s *sender_client = get_autofill_client(app_id, context_id); + sender_client = get_autofill_client(app_id, context_id); if (sender_client) rpc_port_stub_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h);