From b2123f814237f1fb529c3ebfed6ba40f790e08b9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 30 Oct 2001 03:38:24 +0000 Subject: [PATCH] (Fx_popup_menu): Explicitly init f, xpos, and ypos. (Fx_popup_dialog): Explicitly init f. (w32_menu_display_help): Use empty_string. --- src/w32menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/w32menu.c b/src/w32menu.c index 74d4f2754b4..1dd1ed63804 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -620,11 +620,11 @@ cached information about equivalent key sequences.") Lisp_Object position, menu; { Lisp_Object keymap, tem; - int xpos, ypos; + int xpos = 0, ypos = 0; Lisp_Object title; char *error_name; Lisp_Object selection; - FRAME_PTR f; + FRAME_PTR f = NULL; Lisp_Object x, y, window; int keymaps = 0; int for_click = 0; @@ -825,7 +825,7 @@ on the left of the dialog box and all following items on the right.\n\ (position, contents) Lisp_Object position, contents; { - FRAME_PTR f; + FRAME_PTR f = NULL; Lisp_Object window; check_w32 (); @@ -2201,7 +2201,7 @@ w32_menu_display_help (HMENU menu, UINT item, UINT flags) pane_name = first_item[MENU_ITEMS_PANE_NAME]; else if (EQ (first_item[0], Qquote)) /* This shouldn't happen, see w32_menu_show. */ - pane_name = build_string (""); + pane_name = empty_string; else pane_name = first_item[MENU_ITEMS_ITEM_NAME]; -- 2.39.5