[evolution-data-server] Fix possible use of uninitialized variables in the new code
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix possible use of uninitialized variables in the new code
- Date: Thu, 18 May 2017 07:12:18 +0000 (UTC)
commit 7ac93e432a1296c2563d3bc4d5f77538c12ce393
Author: Milan Crha <mcrha redhat com>
Date: Thu May 18 09:11:59 2017 +0200
Fix possible use of uninitialized variables in the new code
.../libedata-book/e-book-meta-backend.c | 4 ++--
src/calendar/libedata-cal/e-cal-meta-backend.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/addressbook/libedata-book/e-book-meta-backend.c
b/src/addressbook/libedata-book/e-book-meta-backend.c
index 63d518b..9e99d2a 100644
--- a/src/addressbook/libedata-book/e-book-meta-backend.c
+++ b/src/addressbook/libedata-book/e-book-meta-backend.c
@@ -885,11 +885,11 @@ ebmb_refresh_thread_func (EBookBackend *book_backend,
g_return_if_fail (E_IS_BOOK_META_BACKEND (book_backend));
+ meta_backend = E_BOOK_META_BACKEND (book_backend);
+
if (g_cancellable_set_error_if_cancelled (cancellable, error))
goto done;
- meta_backend = E_BOOK_META_BACKEND (book_backend);
-
if (!e_backend_get_online (E_BACKEND (meta_backend)) ||
!ebmb_connect_wrapper_sync (meta_backend, cancellable, NULL)) {
/* Ignore connection errors here */
diff --git a/src/calendar/libedata-cal/e-cal-meta-backend.c b/src/calendar/libedata-cal/e-cal-meta-backend.c
index 48637a2..8e7aa02 100644
--- a/src/calendar/libedata-cal/e-cal-meta-backend.c
+++ b/src/calendar/libedata-cal/e-cal-meta-backend.c
@@ -791,11 +791,11 @@ ecmb_refresh_thread_func (ECalBackend *cal_backend,
g_return_if_fail (E_IS_CAL_META_BACKEND (cal_backend));
+ meta_backend = E_CAL_META_BACKEND (cal_backend);
+
if (g_cancellable_set_error_if_cancelled (cancellable, error))
goto done;
- meta_backend = E_CAL_META_BACKEND (cal_backend);
-
if (!e_backend_get_online (E_BACKEND (meta_backend)) ||
!ecmb_connect_wrapper_sync (meta_backend, cancellable, NULL)) {
/* Ignore connection errors here */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]