From 38883a680943b5f66a81b8f2923c8f1deb7d7401 Mon Sep 17 00:00:00 2001 From: etabeta78 Date: Wed, 14 Jan 2015 22:03:43 +0100 Subject: ui: fixed crash in general inputs menu. nw. --- src/emu/ui/inputmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/ui/inputmap.c b/src/emu/ui/inputmap.c index e949a48deaa..42e723eba2d 100644 --- a/src/emu/ui/inputmap.c +++ b/src/emu/ui/inputmap.c @@ -412,7 +412,7 @@ void ui_menu_input::populate_and_sort(input_item_data *itemlist) item = itemarray[curitem]; assert(nameformat[item->type] != NULL); - if (strcmp(item->owner_name, prev_owner.cstr()) != 0) + if (item->owner_name && strcmp(item->owner_name, prev_owner.cstr()) != 0) { if (first_entry) first_entry = false; -- cgit v1.2.3