[evolution-data-server] CalDAV/CardDAV: Fix 'local_error' variable usage in connect_sync()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CalDAV/CardDAV: Fix 'local_error' variable usage in connect_sync()
- Date: Mon, 17 Feb 2020 16:30:01 +0000 (UTC)
commit 8ff19f50b0bcfba44d455ab3a8eaf8124e044912
Author: Milan Crha <mcrha redhat com>
Date: Mon Feb 17 17:22:37 2020 +0100
CalDAV/CardDAV: Fix 'local_error' variable usage in connect_sync()
src/addressbook/backends/carddav/e-book-backend-carddav.c | 2 +-
src/calendar/backends/caldav/e-cal-backend-caldav.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/backends/carddav/e-book-backend-carddav.c
b/src/addressbook/backends/carddav/e-book-backend-carddav.c
index d1577c17f..59e606641 100644
--- a/src/addressbook/backends/carddav/e-book-backend-carddav.c
+++ b/src/addressbook/backends/carddav/e-book-backend-carddav.c
@@ -217,7 +217,7 @@ ebb_carddav_connect_sync (EBookMetaBackend *meta_backend,
uri = soup_uri_to_string (soup_uri, FALSE);
success = FALSE;
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
+ g_set_error (&local_error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
_("Given URL “%s” doesn’t reference CardDAV address book"), uri);
g_free (uri);
diff --git a/src/calendar/backends/caldav/e-cal-backend-caldav.c
b/src/calendar/backends/caldav/e-cal-backend-caldav.c
index f85ae4e10..f6a81dbb2 100644
--- a/src/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/src/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -203,7 +203,7 @@ ecb_caldav_connect_sync (ECalMetaBackend *meta_backend,
uri = soup_uri_to_string (soup_uri, FALSE);
success = FALSE;
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
+ g_set_error (&local_error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
_("Given URL “%s” doesn’t reference CalDAV calendar"), uri);
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]