[evolution-data-server] Fix some "may be used uninitialized" compiler warnings
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix some "may be used uninitialized" compiler warnings
- Date: Mon, 30 Sep 2013 12:47:31 +0000 (UTC)
commit ea6b965068ee4d68e147b07e8c70b2334b23dac9
Author: Milan Crha <mcrha redhat com>
Date: Mon Sep 30 14:46:52 2013 +0200
Fix some "may be used uninitialized" compiler warnings
.../backends/google/e-book-backend-google.c | 2 +-
calendar/backends/file/e-cal-backend-file.c | 4 ++--
calendar/libecal/e-cal.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c
b/addressbook/backends/google/e-book-backend-google.c
index 456b18c..b0c1008 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -1653,7 +1653,7 @@ book_backend_google_create_contacts_sync (EBookBackend *backend,
GError **error)
{
EBookBackendGooglePrivate *priv;
- EContactPhoto *photo;
+ EContactPhoto *photo = NULL;
EContact *contact;
GDataEntry *entry;
GDataContactsContact *new_contact;
diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c
index e50c610..420b988 100644
--- a/calendar/backends/file/e-cal-backend-file.c
+++ b/calendar/backends/file/e-cal-backend-file.c
@@ -1376,7 +1376,7 @@ e_cal_backend_file_open (ECalBackendSync *backend,
ECalBackendFile *cbfile;
ECalBackendFilePrivate *priv;
gchar *str_uri;
- gboolean writable;
+ gboolean writable = FALSE;
GError *err = NULL;
cbfile = E_CAL_BACKEND_FILE (backend);
@@ -3624,7 +3624,7 @@ e_cal_backend_file_reload (ECalBackendFile *cbfile,
{
ECalBackendFilePrivate *priv;
gchar *str_uri;
- gboolean writable;
+ gboolean writable = FALSE;
GError *err = NULL;
priv = cbfile->priv;
diff --git a/calendar/libecal/e-cal.c b/calendar/libecal/e-cal.c
index 070d121..b868416 100644
--- a/calendar/libecal/e-cal.c
+++ b/calendar/libecal/e-cal.c
@@ -671,7 +671,7 @@ e_cal_open (ECal *ecal,
gboolean only_if_exists,
GError **error)
{
- ECalendarStatus status;
+ ECalendarStatus status = E_CALENDAR_STATUS_OK;
GError *err = NULL;
gboolean result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]