Merge pull request #928 from tchebb/fix-uninitialized-value

clock: initialize cached date
This commit is contained in:
Alex 2020-12-01 09:08:19 +01:00 committed by GitHub
commit 1ea662a08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Clock : public ALabel {
const date::time_zone* time_zone_;
bool fixed_time_zone_;
int time_zone_idx_;
date::year_month_day cached_calendar_ymd_;
date::year_month_day cached_calendar_ymd_ = date::January/1/0;
std::string cached_calendar_text_;
bool handleScroll(GdkEventScroll* e);