mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02: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 */
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user