mirror of https://github.com/Icinga/icinga2.git
parent
085fca90ad
commit
af6df9f268
|
@ -750,7 +750,7 @@ tm Utility::LocalTime(time_t ts)
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
tm *result = localtime(&ts);
|
tm *result = localtime(&ts);
|
||||||
|
|
||||||
if (temp == NULL) {
|
if (result == NULL) {
|
||||||
BOOST_THROW_EXCEPTION(posix_error()
|
BOOST_THROW_EXCEPTION(posix_error()
|
||||||
<< boost::errinfo_api_function("localtime")
|
<< boost::errinfo_api_function("localtime")
|
||||||
<< boost::errinfo_errno(errno));
|
<< boost::errinfo_errno(errno));
|
||||||
|
|
Loading…
Reference in New Issue