From: Hwankyu Jhun Date: Thu, 8 Jun 2017 03:52:26 +0000 (+0900) Subject: Fix exception handling of appcore_ui_base API X-Git-Tag: accepted/tizen/unified/20170609.203805~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=0fcfe3095409c931075c57faa7bd48809ab70b6f;p=platform%2Fcore%2Fappfw%2Fapp-core.git Fix exception handling of appcore_ui_base API If the create callback returns a negative error value, the appcore_base_init function should return the value. Change-Id: Ief69e3d2ddb83fee992323ab79e6196a95d7924d Signed-off-by: Hwankyu Jhun --- diff --git a/src/base/appcore_base.c b/src/base/appcore_base.c index e4208e7..c9a17cc 100644 --- a/src/base/appcore_base.c +++ b/src/base/appcore_base.c @@ -893,7 +893,7 @@ EXPORT_API int appcore_base_init(appcore_base_ops ops, int argc, char **argv, vo traceEnd(TTRACE_TAG_APPLICATION_MANAGER); if (r < 0) { aul_status_update(STATUS_DYING); - return 0; + return r; } }