summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaehyeon Jung <darrenh.jung@samsung.com>2016-07-25 21:29:07 +0900
committerDaehyeon Jung <darrenh.jung@samsung.com>2016-07-25 21:30:16 +0900
commit321d1116833a9c3dca93f94a79947222cd60bc04 (patch)
tree806a3486df6c8708e723587a4b7163a9d68e66bf
parent8630f836af3cad3156127b7b1a84b74d0d155dce (diff)
downloadwidget-service-321d1116833a9c3dca93f94a79947222cd60bc04.tar.gz
widget-service-321d1116833a9c3dca93f94a79947222cd60bc04.tar.bz2
widget-service-321d1116833a9c3dca93f94a79947222cd60bc04.zip
Fix widget_service_get_widget_list return value
- get_widget_list should return WIDGET_ERROR_NOT_EXIST if 0 app exist Change-Id: Icd0f5d8c701029ad3845455b052718a402360148
-rw-r--r--src/widget_service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widget_service.c b/src/widget_service.c
index 85b4bbf..474a7d3 100644
--- a/src/widget_service.c
+++ b/src/widget_service.c
@@ -497,6 +497,9 @@ EAPI int widget_service_get_widget_list(widget_list_cb cb, void *data)
ret = g_list_length(list);
g_list_free_full(list, __free_widget_list);
+ if (ret == 0)
+ return WIDGET_ERROR_NOT_EXIST;
+
return ret;
}