aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFred Pierresteguy1994-02-11 08:52:53 +0000
committerFred Pierresteguy1994-02-11 08:52:53 +0000
commit63c414df27766696d9d03723023a8afc1885a8f8 (patch)
tree0e19559b5b45e7d52d017086d9791907b8ad31a6 /src
parent649ddbf59fbf99ab4922b9402ed1fd491e6b585a (diff)
downloademacs-63c414df27766696d9d03723023a8afc1885a8f8.tar.gz
emacs-63c414df27766696d9d03723023a8afc1885a8f8.zip
(xmenu_show) [USE_X_TOOLKIT]: return Qnil when val is null.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c2
1 files changed, 2 insertions, 0 deletions
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)
879 XMEventQue *feq_tmp; /* Foreign event queue temporary. */ 879 XMEventQue *feq_tmp; /* Foreign event queue temporary. */
880 880
881 BLOCK_INPUT; 881 BLOCK_INPUT;
882 if (val == 0) return Qnil;
883
882 menu_id = ++popup_id_tick; 884 menu_id = ++popup_id_tick;
883 menu = lw_create_widget ("popup", val->name, menu_id, val, 885 menu = lw_create_widget ("popup", val->name, menu_id, val,
884 f->display.x->widget, 1, 0, 886 f->display.x->widget, 1, 0,