Change the method of obtaining data from the list 66/239266/2
authormk5004.lee <mk5004.lee@samsung.com>
Thu, 23 Jul 2020 08:13:50 +0000 (17:13 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Fri, 24 Jul 2020 02:30:40 +0000 (11:30 +0900)
Change-Id: I76ffcb7d507e6bf7b126c2bcb277792cd4f54732
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/notification_service.c

index f082d758d098efdc106128ed5fe5180084dd8b4b..ad55032f62fdc5255ea97d5a8076367e98e9e3e2 100644 (file)
@@ -2474,7 +2474,7 @@ int notification_check_event_receiver(GVariant *parameters, GVariant **reply_bod
        find_list = g_list_find_custom(__event_list, GINT_TO_POINTER(priv_id),
                                       (GCompareFunc)__priv_id_compare);
        if (find_list) {
-               info = g_list_nth_data(find_list, 0);
+               info = (event_sender_info_s *)find_list->data;
                if (!info->watcher_id) {
                        if (!is_existed_busname(info->busname)) {
                                __event_list = g_list_remove(g_list_first(__event_list), info);