summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2021-12-08 12:09:47 +0100
committerMilan Crha <mcrha@redhat.com>2021-12-08 12:12:04 +0100
commit78223ae505a74f3877dc9298246762547c050e06 (patch)
treedcc0248dc0d7bac2fb8ee2517efb05d0b7c67adf
parentc2e4bb2cde189c126962ee8d45064a08c276f3fd (diff)
downloadevolution-data-server-78223ae505a74f3877dc9298246762547c050e06.tar.gz
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.
-rw-r--r--src/calendar/libecal/e-cal-client.c3
1 files changed, 1 insertions, 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) {