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
|
||||
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 */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue