From 9193140bcff4341412dd8e60a1e5647ebe122d6d Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 25 May 1999 22:24:08 +0000 Subject: Make intervals always exist. a 0 interval is wrong. 1999-05-25 Miguel de Icaza * calobj.c (load_recurrence): Make intervals always exist. a 0 interval is wrong. svn path=/trunk/; revision=942 --- calendar/cal-util/calobj.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c index d4a17c8859..59c34c866a 100644 --- a/calendar/cal-util/calobj.c +++ b/calendar/cal-util/calobj.c @@ -412,6 +412,10 @@ load_recurrence (iCalObject *o, char *str) /* Get the interval */ for (;*str && isdigit (*str);str++) interval = interval * 10 + (*str-'0'); + + if (interval == 0) + interval = 1; + o->recur->interval = interval; /* this is the default per the spec */ -- cgit