aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calobj.c')
-rw-r--r--calendar/calobj.c4
1 files changed, 4 insertions, 0 deletions
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 */