From 694ee9cdb37cf8653c8bb38e4a646d6fd1931950 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 1 Dec 2008 21:40:26 +0000 Subject: [PATCH] Log an error message when ical_encapsulate_subcomponent() is called with a component that is already a top-level VCALENDAR --- webcit/calendar_tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index ae4b09ee5..07faad27b 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -241,10 +241,10 @@ icalcomponent *ical_encapsulate_subcomponent(icalcomponent *subcomp) { } /* - * If we're already looking at a full VCALENDAR component, - * don't bother ... just return itself. + * If we're already looking at a full VCALENDAR component, this is probably an error. */ if (icalcomponent_isa(subcomp) == ICAL_VCALENDAR_COMPONENT) { + lprintf(3, "ERROR: component sent to ical_encapsulate_subcomponent() already top level\n"); return subcomp; } -- 2.30.2