From 68ecaa807d3dcc5d00b45998bedfd2edad4840e0 Mon Sep 17 00:00:00 2001 From: hyunho Date: Tue, 13 Mar 2018 17:51:23 +0900 Subject: [PATCH 1/1] Check return value Change-Id: Ia610ce9f73bdcfabc8e3a046a5a675040492fe66 Signed-off-by: hyunho --- src/ui_base/appcore_ui_base.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index f641ce0..892c433 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -916,11 +916,16 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar const char *bg_launch; bundle *b; char appid[PATH_MAX] = {0, }; + int ret; ecore_wl_init(NULL); appcore_ui_plugin_init(&ops, argc, argv, &hint); - aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)); + ret = aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)); + if (ret != 0) { + _ERR("Fail to get appid (%d)", getpid()); + return -1; + } __context.ops = ops; __context.data = data; __context.argc = argc; -- 2.7.4