fix possible uninitialized access; thanks to the Clang Static analyzer for pointing...
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 24 May 2011 21:51:35 +0000 (21:51 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 24 May 2011 21:51:35 +0000 (21:51 +0000)
webcit/calendar_view.c

index 5f7de0d9e8d5d61263c432db2cdf956923c2c26f..63ba3ceb54c5aa840557d8c7735180a45317f7cb 100644 (file)
@@ -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;