[evolution-ews/evolution-ews-3-12] Fix 'Unintialized pointer read'
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/evolution-ews-3-12] Fix 'Unintialized pointer read'
- Date: Mon, 19 May 2014 11:06:46 +0000 (UTC)
commit c94a1cd8fac4b25e3116d98880b4f0a7b3d57225
Author: Fabiano Fidêncio <fidencio redhat com>
Date: Sun May 18 11:06:09 2014 +0200
Fix 'Unintialized pointer read'
Catch by https://scan.coverity.com
https://bugzilla.gnome.org/show_bug.cgi?id=730320
src/calendar/e-cal-backend-ews.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index ce479b9..8834406 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1124,7 +1124,7 @@ e_cal_backend_ews_remove_object (ECalBackend *backend,
EwsCalendarAsyncData *remove_data;
ECalBackendEws *cbews = (ECalBackendEws *) backend;
ECalBackendEwsPrivate *priv;
- ECalComponent *comp, *parent = NULL;
+ ECalComponent *comp = NULL, *parent = NULL;
GError *error = NULL;
EwsId item_id;
guint index = 0;
@@ -1632,7 +1632,7 @@ e_cal_backend_ews_create_objects (ECalBackend *backend,
ECalBackendEwsPrivate *priv;
icalcomponent_kind kind;
icalcomponent *icalcomp;
- ECalComponent *comp;
+ ECalComponent *comp = NULL;
struct icaltimetype current;
GError *error = NULL;
const gchar *send_meeting_invitations, *calobj;
@@ -1868,7 +1868,7 @@ e_cal_backend_ews_modify_object (ECalBackend *backend,
ECalBackendEws *cbews;
ECalBackendEwsPrivate *priv;
icalcomponent_kind kind;
- ECalComponent *comp, *oldcomp;
+ ECalComponent *comp = NULL, *oldcomp;
icalcomponent *icalcomp;
gchar *itemid = NULL, *changekey = NULL;
struct icaltimetype current;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]