From 0fcfe3095409c931075c57faa7bd48809ab70b6f Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 8 Jun 2017 12:52:26 +0900 Subject: [PATCH] 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 --- src/base/appcore_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.7.4