diff --git a/src/TDB.cpp b/src/TDB.cpp index 8ddfbcf62..e4fd78dbb 100644 --- a/src/TDB.cpp +++ b/src/TDB.cpp @@ -209,7 +209,7 @@ int TDB::loadPending (std::vector & tasks, Filter& filter) Timer t ("TDB::loadPending"); std::string file; - int line_number; + int line_number = 1; try { diff --git a/src/report.cpp b/src/report.cpp index c86ac55d1..415556f0d 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -1443,9 +1443,9 @@ std::string handleReportCalendar () Date today; bool getpendingdate = false; - int monthsToDisplay; - int mFrom; - int yFrom; + int monthsToDisplay = 1; + int mFrom = today.month (); + int yFrom = today.year (); int mTo; int yTo;