Fix build warning

This commit is contained in:
Sergey Yershov 2015-04-22 13:42:37 +03:00 committed by Alex Zolotarev
parent aaee95ae9a
commit f5b948ea1f

View file

@ -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));