aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-09-06 02:16:26 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-09-06 02:16:26 +0800
commite0daf2ad0c8954c2c4f57e3f342f27569088470c (patch)
treed8ec5162537f6c2b3863f8c1ca14290df7c8f6a9 /calendar/cal-util
parent699f00049570b6024ba520505a68fdb355b2106d (diff)
downloadgsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.tar
gsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.tar.gz
gsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.tar.bz2
gsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.tar.lz
gsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.tar.xz
gsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.tar.zst
gsoc2013-evolution-e0daf2ad0c8954c2c4f57e3f342f27569088470c.zip
Check to see if r->enddate is (time_t)-1 and set to 0 if so
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 svn path=/trunk/; revision=5198
Diffstat (limited to 'calendar/cal-util')
-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: