From: Fred Pierresteguy Date: Fri, 11 Feb 1994 08:52:53 +0000 (+0000) Subject: (xmenu_show) [USE_X_TOOLKIT]: return Qnil when val is null. X-Git-Tag: emacs-19.34~9955 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=63c414df27766696d9d03723023a8afc1885a8f8;p=emacs.git (xmenu_show) [USE_X_TOOLKIT]: return Qnil when val is null. --- 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,