summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/menu.c b/src/menu.c
index a37cb359623..f7a3f55b070 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1112,10 +1112,10 @@ Lisp_Object
x_popup_menu_1 (Lisp_Object position, Lisp_Object menu)
{
if (!NILP (Vx_popup_menu_function))
- return run_hook_with_args (3, ((Lisp_Object[]) {
- Qx_popup_menu_function, position,
- menu}),
- Ffuncall);
+ {
+ Lisp_Object args[] = { Qx_popup_menu_function, position, menu, };
+ return run_hook_with_args (3, args, Ffuncall);
+ }
Lisp_Object keymap, tem, tem2 = Qnil;
int xpos = 0, ypos = 0;