From: Seungha Son Date: Fri, 12 Jan 2018 05:18:38 +0000 (+0900) Subject: Add error handling condition X-Git-Tag: submit/tizen/20180116.091031~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31dce6796e68fa7690abf14e405fda6ba00e408d;p=platform%2Fcore%2Fapi%2Fnotification.git Add error handling condition Signed-off-by: Seungha Son Change-Id: Iaa3b56a934c5acab10d11d457e42a15784798bcb --- diff --git a/src/notification_ipc.c b/src/notification_ipc.c index fe0ce766..1f8737e7 100755 --- a/src/notification_ipc.c +++ b/src/notification_ipc.c @@ -2487,14 +2487,17 @@ int notification_ipc_make_dnd_allow_exception_from_gvariant(struct notification_ static int _send_service_register(uid_t uid) { - GDBusMessage *reply = NULL; int result; notification_op *noti_op = NULL; + GDBusMessage *reply = NULL; result = _send_sync_noti(g_variant_new("(i)", uid), &reply, "noti_service_register"); - if (reply) g_object_unref(reply); + if (result != NOTIFICATION_ERROR_NONE) { + ERR("send sync noti [%d]", result); + return result; + } noti_op = _ipc_create_op(NOTIFICATION_OP_SERVICE_READY, 1, NULL, 1, NULL); if (noti_op != NULL) {