Check return value 42/172342/2
authorhyunho <hhstark.kang@samsung.com>
Tue, 13 Mar 2018 08:51:23 +0000 (17:51 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 15 Mar 2018 01:06:08 +0000 (10:06 +0900)
Change-Id: Ia610ce9f73bdcfabc8e3a046a5a675040492fe66
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/ui_base/appcore_ui_base.c

index f641ce0..892c433 100644 (file)
@@ -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;