summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-06-08 12:52:26 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-06-08 04:24:44 +0000
commit0fcfe3095409c931075c57faa7bd48809ab70b6f (patch)
treeb34083376d551930917bd1cb7374464522518e76
parentd82ac10ce2075e4ee89ea37594e05cfc4adc3d87 (diff)
downloadapp-core-0fcfe3095409c931075c57faa7bd48809ab70b6f.tar.gz
app-core-0fcfe3095409c931075c57faa7bd48809ab70b6f.tar.bz2
app-core-0fcfe3095409c931075c57faa7bd48809ab70b6f.zip
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 <h.jhun@samsung.com>
-rw-r--r--src/base/appcore_base.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}