diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2009-12-09 16:46:07 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2009-12-09 16:46:07 +0100 |
commit | 598a304b37d4572650627377fb5a5c220739a0a3 (patch) | |
tree | c27461242c3c4d328c6345333f587caead19befa | |
parent | 8f1dd1ba953b3e628be2920b394fec51f6cee9a5 (diff) |
EDS Calendar: set pointer to NULL to protect against ecal bug (MB #8005)
e_cal_get_object() seems to run into situations where it neither sets
the "comp" pointer nor returns an error. SyncEvolution was using an
uninitialized pointer in that case. Set the "comp" pointer to NULL
to detect this kind of failure => "ERROR retrieving item...".
-rw-r--r-- | src/backends/evolution/EvolutionCalendarSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/evolution/EvolutionCalendarSource.cpp b/src/backends/evolution/EvolutionCalendarSource.cpp index c7b0d3ac..d97102d4 100644 --- a/src/backends/evolution/EvolutionCalendarSource.cpp +++ b/src/backends/evolution/EvolutionCalendarSource.cpp @@ -560,7 +560,7 @@ void EvolutionCalendarSource::removeItem(const string &luid) icalcomponent *EvolutionCalendarSource::retrieveItem(const ItemID &id) { GError *gerror = NULL; - icalcomponent *comp; + icalcomponent *comp = NULL; if (!e_cal_get_object(m_calendar, id.m_uid.c_str(), |