From: Wilfried Goesgens Date: Tue, 24 May 2011 21:51:35 +0000 (+0000) Subject: fix possible uninitialized access; thanks to the Clang Static analyzer for pointing... X-Git-Tag: v7.87~17^2~8 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=490762646f5d3f99a3d1626b7c2e65d8aba2c85a fix possible uninitialized access; thanks to the Clang Static analyzer for pointing out. --- diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 5f7de0d9e..63ba3ceb5 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -854,6 +854,7 @@ void calendar_day_view_display_events(time_t thetime, * overlap with this one take place at least partially in this day. */ memset(&starting_tm, 0, sizeof(struct tm)); + memset(&event_te, 0, sizeof(struct tm)); starting_tm.tm_year = year - 1900; starting_tm.tm_mon = month - 1; starting_tm.tm_mday = day;