aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/calobj.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1999-05-26 06:24:08 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-05-26 06:24:08 +0800
commit9193140bcff4341412dd8e60a1e5647ebe122d6d (patch)
tree76db40b0cbd1f0ee4406ebfa920af84cb8912859 /calendar/cal-util/calobj.c
parent6a0a6d08c17a05841a4eab30095e9b37fde4051c (diff)
downloadgsoc2013-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/cal-util/calobj.c')
-rw-r--r--calendar/cal-util/calobj.c4
1 files changed, 4 insertions, 0 deletions
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 */