summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2024-01-18 23:30:42 +0100
committer hap <happppp@users.noreply.github.com>2024-01-18 23:30:42 +0100
commit7334c4a5a287dba2d6db6f65ae1e87ca085a2ac9 (patch)
tree09f922ce633bc64a37e88b6198658d4ada49b134 /src
parent306c93cdd61b64cb9a9d5cc72206a888c772f963 (diff)
xavix_2002: get rid of bogus gcc -Wmaybe-uninitialized warning
Diffstat (limited to 'src')
-rw-r--r--src/mame/tvgames/xavix_2002.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/tvgames/xavix_2002.cpp b/src/mame/tvgames/xavix_2002.cpp
index e95b90a84d7..c227e9b6ce6 100644
--- a/src/mame/tvgames/xavix_2002.cpp
+++ b/src/mame/tvgames/xavix_2002.cpp
@@ -349,7 +349,8 @@ void xavix_i2c_jmat_state::xavix2002_i2c_jmat(machine_config &config)
DEVICE_IMAGE_LOAD_MEMBER(xavix2002_super_tv_pc_state::cart_load)
{
u64 length;
- memory_region *cart_region;
+ memory_region *cart_region = nullptr;
+
if (m_cart->loaded_through_softlist())
{
cart_region = m_cart->memregion("prg");