diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2017-06-08 12:52:26 +0900 |
---|---|---|
committer | HwanKyu Jhun <h.jhun@samsung.com> | 2017-06-08 04:24:44 +0000 |
commit | 0fcfe3095409c931075c57faa7bd48809ab70b6f (patch) | |
tree | b34083376d551930917bd1cb7374464522518e76 | |
parent | d82ac10ce2075e4ee89ea37594e05cfc4adc3d87 (diff) | |
download | app-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.c | 2 |
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; } } |