Set icalerror_errors_are_fatal to 0.
[citadel.git] / citadel / modules / calendar / serv_calendar.c
index ae8ae7a78aee1faad7c740fb87d4332b7159c422..062e24d055c57cbf316c72e41536dfd6964e343e 100644 (file)
@@ -2313,6 +2313,11 @@ CTDL_MODULE_INIT(calendar)
 {
        if (!threading)
        {
+
+               /* Tell libical to return errors instead of aborting if it gets bad data */
+               icalerror_errors_are_fatal = 0;
+
+               /* Initialize our hook functions */
                CtdlRegisterMessageHook(ical_obj_beforesave, EVT_BEFORESAVE);
                CtdlRegisterMessageHook(ical_obj_aftersave, EVT_AFTERSAVE);
                CtdlRegisterSessionHook(ical_create_room, EVT_LOGIN);