summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-12-18 10:50:33 -0500
committer AJR <ajrhacker@users.noreply.github.com>2017-12-18 10:50:49 -0500
commit469caf4245b3cb9b11ca20c37ca9e16a9403195e (patch)
treea383edf29e05ba0e7fb3ecd81c9b43716f3ccd76 /src/emu/machine.cpp
parent7debd71185550c0ac39c171be5257be817a9e61c (diff)
Cause of crash reported on MAMEWorld (nw)
Diffstat (limited to 'src/emu/machine.cpp')
-rw-r--r--src/emu/machine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp
index f55bfb6c5ad..48edd645ac1 100644
--- a/src/emu/machine.cpp
+++ b/src/emu/machine.cpp
@@ -1283,6 +1283,7 @@ system_time::system_time(time_t t)
void system_time::set(time_t t)
{
+ // FIXME: this crashes if localtime or gmtime returns nullptr
time = t;
local_time.set(*localtime(&t));
utc_time.set(*gmtime(&t));