fixed -fsanitize=null error in address_space::prepare_map() (nw)

by Olivier Galibert
This commit is contained in:
Oliver Stöneberg 2015-01-22 13:27:33 +01:00
parent d6cbabce5c
commit d3e10b4347

View File

@ -1811,7 +1811,7 @@ void address_space::prepare_map()
m_map.reset(global_alloc(address_map(m_device, m_spacenum))); m_map.reset(global_alloc(address_map(m_device, m_spacenum)));
// merge in the submaps // merge in the submaps
m_map->uplift_submaps(machine(), m_device, *m_device.owner(), endianness()); m_map->uplift_submaps(machine(), m_device, m_device.owner() ? *m_device.owner() : m_device, endianness());
// extract global parameters specified by the map // extract global parameters specified by the map
m_unmap = (m_map->m_unmapval == 0) ? 0 : ~0; m_unmap = (m_map->m_unmapval == 0) ? 0 : ~0;