diff options
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/cal-util/calobj.c | 4 | ||||
-rw-r--r-- | calendar/calobj.c | 4 | ||||
-rw-r--r-- | calendar/pcs/calobj.c | 4 |
4 files changed, 17 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 23a6eee2eb..18716dcf2a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +1999-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx> + + * calobj.c (load_recurrence): Make intervals always exist. a 0 + interval is wrong. + 1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c: Removed unused macro CALENDAR_HEIGHT. 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 */ diff --git a/calendar/calobj.c b/calendar/calobj.c index d4a17c8859..59c34c866a 100644 --- a/calendar/calobj.c +++ b/calendar/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 */ diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c index d4a17c8859..59c34c866a 100644 --- a/calendar/pcs/calobj.c +++ b/calendar/pcs/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 */ |