[evolution-data-server/gnome-41] e-cal-client: Correct non-NULL check in e_cal_client_create_objects_sync()



commit 78223ae505a74f3877dc9298246762547c050e06
Author: Milan Crha <mcrha redhat com>
Date:   Wed Dec 8 12:09:47 2021 +0100

    e-cal-client: Correct non-NULL check in e_cal_client_create_objects_sync()
    
    The function is declared to allow non-NULL `out_uids`, but the code had
    been testing for its non-NULL-ness, thus remove the check.

 src/calendar/libecal/e-cal-client.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/calendar/libecal/e-cal-client.c b/src/calendar/libecal/e-cal-client.c
index cfb0cf0af..a861c27aa 100644
--- a/src/calendar/libecal/e-cal-client.c
+++ b/src/calendar/libecal/e-cal-client.c
@@ -4791,7 +4791,7 @@ e_cal_client_create_objects_finish (ECalClient *client,
  * @client: an #ECalClient
  * @icalcomps: (element-type ICalComponent): The components to create
  * @opflags: (type ECalOperationFlags): bit-or of #ECalOperationFlags
- * @out_uids: (out) (nullable) (element-type utf8): Return value for the UIDs assigned
+ * @out_uids: (out) (optional) (element-type utf8): Return value for the UIDs assigned
  *            to the new components by the calendar backend
  * @cancellable: a #GCancellable; can be %NULL
  * @error: a #GError to set an error, if any
@@ -4822,7 +4822,6 @@ e_cal_client_create_objects_sync (ECalClient *client,
 
        g_return_val_if_fail (E_IS_CAL_CLIENT (client), FALSE);
        g_return_val_if_fail (icalcomps != NULL, FALSE);
-       g_return_val_if_fail (out_uids != NULL, FALSE);
 
        strv = g_new0 (gchar *, g_slist_length (icalcomps) + 1);
        while (icalcomps != NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]