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