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 e4208e79e25849183b0a5a84a95e9aa2bf31a925..c9a17cc69ebffdc30e16d2e82265f95c93eb4f45 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;
                }
        }