diff options
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/cal-util/cal-recur.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4925b08416..82e29699aa 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2000-09-05 JP Rosevear <jpr@helixcode.com> + + * cal-util/cal-recur.c (cal_recur_from_icalrecurrencetype): Check + to see if r->enddate is (time_t)-1 and set to 0 if so + 2000-09-02 Ettore Perazzoli <ettore@helixcode.com> * conduits/calendar/Makefile.am (INCLUDES): Add libical include diff --git a/calendar/cal-util/cal-recur.c b/calendar/cal-util/cal-recur.c index 9c35e26b92..5839dccace 100644 --- a/calendar/cal-util/cal-recur.c +++ b/calendar/cal-util/cal-recur.c @@ -640,6 +640,8 @@ cal_recur_from_icalrecurrencetype (struct icalrecurrencetype *ir) * distinguish between n-occurrences and until-some-date rules? */ r->enddate = icaltime_as_timet (ir->until); + if (r->enddate == (time_t)-1) + r->enddate = 0; switch (ir->week_start) { case ICAL_MONDAY_WEEKDAY: |