return list handle even if list has no record 26/104626/1
authorJongkyu Koo <jk.koo@samsung.com>
Tue, 13 Dec 2016 03:44:31 +0000 (12:44 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 14 Dec 2016 02:04:13 +0000 (18:04 -0800)
Change-Id: I714da5460c2136a8568b494a7d69cb0a1a44d4c7
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
(cherry picked from commit 44c918c9527084c7c07b59272e9399a95a89cbc7)

common/dbus/cal_dbus_helper.c
packaging/calendar-service.spec

index 9b30278..389f79b 100644 (file)
@@ -1734,7 +1734,6 @@ int cal_dbus_utils_gvariant_to_list(GVariant *arg_list_pack, calendar_list_h *ou
 
        calendar_list_h l = NULL;
 
-       int count = 0;
        if (1 == has_list) {
                calendar_list_create(&l);
                GVariantIter *iter_value = NULL;
@@ -1748,16 +1747,10 @@ int cal_dbus_utils_gvariant_to_list(GVariant *arg_list_pack, calendar_list_h *ou
                        if (CALENDAR_ERROR_NONE != ret)
                                break;
 
-                       count++;
                        calendar_list_add(l, record);
                }
        }
 
-       if (0 == count) {
-               calendar_list_destroy(l, true);
-               l = NULL;
-       }
-
        *out_list = l;
 
        return CALENDAR_ERROR_NONE;
index 4e695cd..99469fa 100644 (file)
@@ -1,6 +1,6 @@
 Name:       calendar-service
 Summary:    DB library for calendar
-Version:    0.1.174
+Version:    0.1.175
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0