Resolve Coverity Issue 1107986 45/292145/2
authorhyunsube.lee <hyunsube.lee@samsung.com>
Fri, 28 Apr 2023 00:34:38 +0000 (09:34 +0900)
committerhyunsube.lee <hyunsube.lee@samsung.com>
Fri, 28 Apr 2023 01:13:22 +0000 (10:13 +0900)
Change-Id: I65dbf406de98b23384f572a2c2dee1eebe68f64e

ui-gadget/wifi_viewer_list.c

index 7c9b661a775638ac6fd129c9cfad3b6b0bea20ab..6ca7c6e234f94f65f2163f884e79db00622a55b3 100644 (file)
@@ -920,7 +920,12 @@ static void __viewer_list_item_clicked_cb(void *data, Evas_Object *obj,
                char *bssid = NULL;
                app_control_h reply;
 
-               app_control_create(&reply);
+               int ret = app_control_create(&reply);
+               if (ret != APP_CONTROL_ERROR_NONE) {
+                       INFO_LOG(UG_NAME_NORMAL, "app_control_create failed: %d", ret);
+                       return;
+               }
+
                wifi_manager_ap_get_bssid(device_info->ap, &bssid);
                SECURE_INFO_LOG(UG_NAME_NORMAL, "bssid %s, ssid %s", bssid, device_info->ssid);