From 57d1459ca052007c8db0b15ec3e2ece34953e4cc Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sat, 30 Apr 2011 22:37:12 +0000 Subject: [PATCH] Ensure m_token is NULL in the event of a 0-length token for legacy devices. --- src/emu/devlegcy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emu/devlegcy.c b/src/emu/devlegcy.c index d8f93ffba9b..1b15e10a2cf 100644 --- a/src/emu/devlegcy.c +++ b/src/emu/devlegcy.c @@ -52,7 +52,8 @@ legacy_device_base::legacy_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, device_get_config_func get_config) : device_t(mconfig, type, "Legacy Device", tag, owner, clock), m_get_config_func(get_config), - m_inline_config(NULL) + m_inline_config(NULL), + m_token(NULL) { // allocate a buffer for the inline configuration UINT32 configlen = (UINT32)get_legacy_int(DEVINFO_INT_INLINE_CONFIG_BYTES);