From 6d328b0c65c0491a41fcc0f4d95f9188bf8e2800 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 16 Mar 2009 21:02:59 +0000 Subject: [PATCH] Monotone-Parent: f735bdc8793af33775f3d62a37f21c20a54806c9 Monotone-Revision: 88f0ce5639727c85b38f30956343e35a4d05148c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-16T21:02:59 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ SoObjects/Appointments/SOGoCalendarComponent.m | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b8f911012..19948e393 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-03-16 Wolfgang Sourdeau + * SoObjects/Appointments/SOGoCalendarComponent.m + ([SOGoCalendarComponent + -lookupName:lookupNameinContext:localContextacquire:acquire]): + initialize "isNewComponent" to NO if it's not, to avoid problems + with unitialized memory. + * SoObjects/SOGo/LDAPSource.m ([LDAPSource -setBaseDN:newBaseDNIDField:newIDFieldCNField:newCNFieldUIDField:newUIDFieldmailFields:newMailFieldsandBindFields:newBindFields]): bug setting the CN and UID field only if they were set before, diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 887cc4105..ebf898b73 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -319,7 +319,9 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID) { recID = [lookupName substringFromIndex: 9]; occurence = [self lookupOccurence: recID]; - if (!occurence) + if (occurence) + isNewOccurence = NO; + else { occurence = [self newOccurenceWithID: recID]; isNewOccurence = YES;