From 63c414df27766696d9d03723023a8afc1885a8f8 Mon Sep 17 00:00:00 2001 From: Fred Pierresteguy Date: Fri, 11 Feb 1994 08:52:53 +0000 Subject: [PATCH] (xmenu_show) [USE_X_TOOLKIT]: return Qnil when val is null. --- src/xmenu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xmenu.c b/src/xmenu.c index 06bc1300402..a2ba24cd86d 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -879,6 +879,8 @@ xmenu_show (f, val, x, y, menubarp, vw) XMEventQue *feq_tmp; /* Foreign event queue temporary. */ BLOCK_INPUT; + if (val == 0) return Qnil; + menu_id = ++popup_id_tick; menu = lw_create_widget ("popup", val->name, menu_id, val, f->display.x->widget, 1, 0, -- 2.39.5