Fix control flow issue 10/271010/2 accepted/tizen/unified/20220221.224809 submit/tizen/20220221.013219
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 14 Feb 2022 16:41:15 +0000 (01:41 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 15 Feb 2022 10:55:24 +0000 (19:55 +0900)
Branch past initialization (PW.BRANCH_PAST_INITIALIZATION)

Change-Id: Ia837b43f3e74a90076e0fc3a4323f61ac70cf3e8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/autofill-daemon.c

index 4235bb0a5d79bcc73d3f0119a4dfea70f725c48b..d57c6c081c7dd0b830ab9e29296417f2fe5f6e8b 100644 (file)
@@ -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);