From a1b1ec217689c948e1761af6c4174089fa396426 Mon Sep 17 00:00:00 2001 From: Cheoleun Moon Date: Tue, 18 May 2021 18:46:39 +0900 Subject: Check item counts Change-Id: I51d57e704db941c1d76b6b39ce7858807480cf72 Signed-off-by: Cheoleun Moon --- sources/wearable/src/wearable-circle/view/layout_scan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/wearable/src/wearable-circle/view/layout_scan.c b/sources/wearable/src/wearable-circle/view/layout_scan.c index 1854ef3..d00d1d3 100755 --- a/sources/wearable/src/wearable-circle/view/layout_scan.c +++ b/sources/wearable/src/wearable-circle/view/layout_scan.c @@ -346,6 +346,7 @@ static gboolean _ap_list_update_ap_items(layout_scan_object *self) Elm_Object_Item *ap_item = NULL; __WIFI_FUNC_ENTER__; + WIFI_RET_VAL_IF_FAIL(old_items_count >= 0, FALSE); WIFI_RET_VAL_IF_FAIL(wifi_ap_itc != NULL, FALSE); if (new_items_count < old_items_count) { -- cgit v1.2.3