summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2021-07-06 15:05:05 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2021-07-06 15:05:11 +0900
commitfaf46c1fe6f463ebe72c304e702def87cf1ea0cf (patch)
tree96f599edfe3fad286d08a53f434316e80d6d71cb
parent4ccab15ec9b6f03064fec0e27e961a0d81230ae4 (diff)
downloadwifi-accepted/tizen_6.5_unified.tar.gz
wifi-accepted/tizen_6.5_unified.tar.bz2
wifi-accepted/tizen_6.5_unified.zip
Change-Id: Ifcc666013630f039f497ae956f427d12961586a6 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
-rwxr-xr-xsources/wearable/src/wearable-circle/view/layout_scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/wearable/src/wearable-circle/view/layout_scan.c b/sources/wearable/src/wearable-circle/view/layout_scan.c
index a6cb838..15217d6 100755
--- a/sources/wearable/src/wearable-circle/view/layout_scan.c
+++ b/sources/wearable/src/wearable-circle/view/layout_scan.c
@@ -341,12 +341,13 @@ static gboolean _ap_list_update_ap_items(layout_scan_object *self)
{
GList *l = self->ap_data_list;
guint index, old_items_count = elm_genlist_items_count(self->ap_list);
+ WIFI_RET_VAL_IF_FAIL(old_items_count >= 1, FALSE);
+
guint new_items_count = g_list_length(self->ap_data_list);
Elm_Genlist_Item_Class *wifi_ap_itc = _create_wifi_ap_itc(self);
Elm_Object_Item *ap_item = NULL;
__WIFI_FUNC_ENTER__;
- WIFI_RET_VAL_IF_FAIL(old_items_count >= 1, FALSE);
WIFI_RET_VAL_IF_FAIL(wifi_ap_itc != NULL, FALSE);
old_items_count -= 1;