diff options
Diffstat (limited to 'src/emu/debug/dvwpoints.c')
-rw-r--r-- | src/emu/debug/dvwpoints.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/debug/dvwpoints.c b/src/emu/debug/dvwpoints.c index bf6618ec7bf..96303c89afc 100644 --- a/src/emu/debug/dvwpoints.c +++ b/src/emu/debug/dvwpoints.c @@ -240,7 +240,8 @@ void debug_view_watchpoints::gather_watchpoints() } // And now for the sort - qsort(&m_buffer[0], m_buffer.count(), sizeof(device_debug::watchpoint *), m_sortType); + if (m_buffer.count() > 0) + qsort(&m_buffer[0], m_buffer.count(), sizeof(device_debug::watchpoint *), m_sortType); } |