Exclude apps without name in app list 54/244754/1 accepted/tizen/6.0/unified/20201030.103434 accepted/tizen/6.0/unified/hotfix/20201103.045233 accepted/tizen/unified/20200924.121623 submit/tizen/20200924.055237 submit/tizen_6.0/20201029.205504 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 tizen_6.0.m2_release
authorKiseok Chang <kiso.chang@samsung.com>
Thu, 24 Sep 2020 04:33:39 +0000 (13:33 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Thu, 24 Sep 2020 04:34:26 +0000 (13:34 +0900)
Change-Id: Id015d564b5a7de86a2ae589dc0926d0cf657b9a7
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
setting-storage/src/setting-storage-applications-utils.c

index baf626e651e288dc4f29037694b85d4392579298..16dae251dfb0650fc633a68538f4a14b8fb75dd8 100755 (executable)
@@ -200,11 +200,16 @@ bool storage_get_pkg_list_iter(package_info_h handle, void *data)
        info = calloc(1, sizeof(Node_Info));
        if (NULL == info) {
                SETTING_TRACE_ERROR("calloc() Fail");
-               return 0;
+               return false;
        }
 
        info->ad = ad;
        storage_apps_get_node_info(handle, info);
+       if (info->name == NULL || strlen(info->name) == 0) {
+               SETTING_TRACE_DEBUG("info have invalid name");
+               free(info);
+               return false;
+       }
        info->size_timer = ecore_timer_add(2.0, __get_size_on_time, info);
 
        if (safeStrCmp(ad->launch_mode, "appselect") != 0 ||
@@ -213,7 +218,7 @@ bool storage_get_pkg_list_iter(package_info_h handle, void *data)
        }
 
        ad->count_sz_all = eina_list_count(ad->data_list);
-       return EINA_TRUE;
+       return true;
 }
 
 void storage_apps_get_node_info(package_info_h handle, Node_Info *info)