From 6692fc1a98b9e45b0ef43348f396d84758006226 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 19 Mar 2012 21:18:14 -0400 Subject: [PATCH] When an event has no DTEND, set the duration to zero. This prevents a recurring event with no DTEND from throwing the recurrence calculator into a very long loop. --- webcit/calendar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webcit/calendar.c b/webcit/calendar.c index 84493f90f..c1d0ded59 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -504,6 +504,9 @@ void display_individual_cal(icalcomponent *event, long msgnum, char *from, int u if (!icaltime_is_null_time(dtend)) { /* Need duration for recurrences */ dur = icaltime_subtract(dtend, dtstart); } + else { + dur = icaltime_subtract(dtstart, dtstart); + } /* * Just let libical iterate the recurrence, and keep looping back to the top of this function, -- 2.30.2