diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1999-05-26 06:24:08 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-05-26 06:24:08 +0800 |
commit | 9193140bcff4341412dd8e60a1e5647ebe122d6d (patch) | |
tree | 76db40b0cbd1f0ee4406ebfa920af84cb8912859 /calendar | |
parent | 6a0a6d08c17a05841a4eab30095e9b37fde4051c (diff) | |
download | gsoc2013-evolution-9193140bcff4341412dd8e60a1e5647ebe122d6d.tar.gz gsoc2013-evolution-9193140bcff4341412dd8e60a1e5647ebe122d6d.tar.zst gsoc2013-evolution-9193140bcff4341412dd8e60a1e5647ebe122d6d.zip |
Make intervals always exist. a 0 interval is wrong.
1999-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (load_recurrence): Make intervals always exist. a 0
interval is wrong.
svn path=/trunk/; revision=942
Diffstat (limited to 'calendar')
-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 */ |