aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-recur.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util/cal-recur.c')
-rw-r--r--calendar/cal-util/cal-recur.c2
1 files changed, 2 insertions, 0 deletions
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: