From: hyunho Date: Tue, 13 Mar 2018 08:51:23 +0000 (+0900) Subject: Check return value X-Git-Tag: accepted/tizen/unified/20180315.150743~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fapp-core.git;a=commitdiff_plain;h=68ecaa807d3dcc5d00b45998bedfd2edad4840e0 Check return value Change-Id: Ia610ce9f73bdcfabc8e3a046a5a675040492fe66 Signed-off-by: hyunho --- 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;