[Commits] [SCM] claws branch, master, updated. 3.14.1-224-g3fd978a
ticho at claws-mail.org
ticho at claws-mail.org
Mon Mar 13 19:05:05 CET 2017
The branch, master has been updated
via 3fd978a7ddc9d0f98bc1048f28ab527cfbf60ac6 (commit)
from 69ed24f94f81bd506b95dbc3cd858b842854c195 (commit)
Summary of changes:
src/plugins/vcalendar/vcal_folder.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 3fd978a7ddc9d0f98bc1048f28ab527cfbf60ac6
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Mon Mar 13 19:03:25 2017 +0100
Initialize icaltimetype variables in Vcalendar's feed_fetch().
Also print out debug output if an event has no start or end,
as it can help determine why a malformed event file shows
weird times or duration.
diff --git a/src/plugins/vcalendar/vcal_folder.c b/src/plugins/vcalendar/vcal_folder.c
index 7951ab7..97e7ded 100644
--- a/src/plugins/vcalendar/vcal_folder.c
+++ b/src/plugins/vcalendar/vcal_folder.c
@@ -610,7 +610,8 @@ add_new:
}
if (rprop && ritr) {
struct icaldurationtype ical_dur;
- struct icaltimetype dtstart, dtend;
+ struct icaltimetype dtstart = icaltime_null_time();
+ struct icaltimetype dtend = icaltime_null_time();
evt = icalcomponent_new_clone(evt);
prop = icalcomponent_get_first_property(evt, ICAL_RRULE_PROPERTY);
if (prop) {
@@ -620,9 +621,13 @@ add_new:
prop = icalcomponent_get_first_property(evt, ICAL_DTSTART_PROPERTY);
if (prop)
dtstart = icalproperty_get_dtstart(prop);
+ else
+ debug_print("event has no DTSTART!\n");
prop = icalcomponent_get_first_property(evt, ICAL_DTEND_PROPERTY);
if (prop)
dtend = icalproperty_get_dtend(prop);
+ else
+ debug_print("event has no DTEND!\n");
ical_dur = icaltime_subtract(dtend, dtstart);
next = icalrecur_iterator_next(ritr);
if (!icaltime_is_null_time(next) &&
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list