From 9921bba68b1b9299a283e1ed7c612bbb7dcd81c7 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 22 Mar 2011 20:56:57 +0000 Subject: [PATCH] Monotone-Parent: ede91a980338742748957c740a70ce61e1bcccae Monotone-Revision: cb36ec3f7d193b795240d0061daae4db88f1c337 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-03-22T20:56:57 Monotone-Branch: ca.inverse.sogo --- SOPE/NGCards/iCalMonthlyRecurrenceCalculator.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SOPE/NGCards/iCalMonthlyRecurrenceCalculator.m b/SOPE/NGCards/iCalMonthlyRecurrenceCalculator.m index 274a2bd22..aac5532ff 100644 --- a/SOPE/NGCards/iCalMonthlyRecurrenceCalculator.m +++ b/SOPE/NGCards/iCalMonthlyRecurrenceCalculator.m @@ -379,11 +379,9 @@ static inline unsigned iCalDoWForNSDoW (int dow) { // When dealing with the month of the first occurence, remove days // that occur before the first occurrence. - int i; - for (i = 1; i < eventDayOfMonth; i++) - monthDays[i] = NO; + memset (monthDays, NO, sizeof (BOOL) * eventDayOfMonth); // The first occurrence must always be included. - monthDays[i] = YES; + monthDays[eventDayOfMonth] = YES; } } else