Fix bug for fixing the api dbus initialized issue 66/196266/2
authorInkyun Kil <inkyun.kil@samsung.com>
Thu, 27 Dec 2018 01:50:01 +0000 (10:50 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Thu, 27 Dec 2018 02:20:28 +0000 (11:20 +0900)
Change-Id: Ie3fc08edbb868a3da2cc266aeb2d9cc8f5fef741
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/alarm-lib.c

index b84d9bb..a36c899 100755 (executable)
@@ -1670,6 +1670,12 @@ int alarmmgr_get_list_of_ids(int maxnum_of_ids, alarm_id_t *alarm_id,
 EXPORT_API int alarmmgr_get_next_duetime(alarm_id_t alarm_id, time_t *duetime)
 {
        int error_code;
+       int ret;
+
+       ret = __sub_init();
+       if (ret < 0)
+               return ret;
+
        ALARM_MGR_LOG_PRINT("[alarm-lib]:alarmmgr_get_next_duetime() is called.");
 
        if (duetime == NULL)