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/cal-util/cal-recur.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/cal-util/cal-recur.c') 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