Fix exception handling of appcore_ui_base API 41/132841/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 8 Jun 2017 03:52:26 +0000 (12:52 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Thu, 8 Jun 2017 04:24:44 +0000 (04:24 +0000)
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>
src/base/appcore_base.c

index e4208e7..c9a17cc 100644 (file)
@@ -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;
                }
        }