From e0daf2ad0c8954c2c4f57e3f342f27569088470c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 5 Sep 2000 18:16:26 +0000 Subject: Check to see if r->enddate is (time_t)-1 and set to 0 if so 2000-09-05 JP Rosevear * 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 svn path=/trunk/; revision=5198 --- calendar/ChangeLog | 5 +++++ calendar/cal-util/cal-recur.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'calendar') 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 + + * 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 * 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: -- cgit v1.2.3