diff options
Diffstat (limited to 'sources')
-rwxr-xr-x | sources/wearable/src/wearable-circle/view/layout_scan.c | 3 |
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; |