forked from organicmaps/organicmaps-tmp
Fix build warning
This commit is contained in:
parent
aaee95ae9a
commit
f5b948ea1f
1 changed files with 1 additions and 1 deletions
|
@ -927,7 +927,7 @@ OSMTimeRange & OSMTimeRange::operator () (time_t timestamp)
|
|||
|
||||
OSMTimeRange & OSMTimeRange::operator () (std::string const & timestr, char const * timefmt)
|
||||
{
|
||||
std::tm when = {0};
|
||||
std::tm when = {};
|
||||
std::stringstream ss(timestr);
|
||||
ss >> std::get_time(&when, timefmt);
|
||||
return this->operator()(std::mktime(&when));
|
||||
|
|
Loading…
Add table
Reference in a new issue