[evolution-ews] Fix 'Unintialized pointer read'



commit 7222897f6bb776fd7b4c63eb3e89cd57df930150
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]