1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Improve compatibility with Windows.

Fixes 
This commit is contained in:
Gunnar Beutner 2013-12-09 13:46:53 +01:00
parent 085fca90ad
commit af6df9f268

@ -750,7 +750,7 @@ tm Utility::LocalTime(time_t ts)
#ifdef _MSC_VER
tm *result = localtime(&ts);
if (temp == NULL) {
if (result == NULL) {
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("localtime")
<< boost::errinfo_errno(errno));
@ -768,4 +768,4 @@ tm Utility::LocalTime(time_t ts)
return result;
#endif /* _MSC_VER */
}
}