diff --git a/src/declarativeimports/calendar/calendar.cpp b/src/declarativeimports/calendar/calendar.cpp index 03d145452..a766acbfd 100644 --- a/src/declarativeimports/calendar/calendar.cpp +++ b/src/declarativeimports/calendar/calendar.cpp @@ -200,8 +200,8 @@ void Calendar::updateData() int totalDays = m_days * m_weeks; - int daysBeforeCurrentMonth; - int daysAfterCurrentMonth; + int daysBeforeCurrentMonth = 0; + int daysAfterCurrentMonth = 0; QDate firstDay(m_displayedDate.year(), m_displayedDate.month(), 1);