summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2001-10-30 03:38:24 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2001-10-30 03:38:24 +0000
commitb2123f814237f1fb529c3ebfed6ba40f790e08b9 (patch)
tree8f9ce1174912e236caead0df0fda96e9697cf7bc
parent3ebb84168d40aa6f312ed1ee78a479a0c895fb45 (diff)
downloademacs-b2123f814237f1fb529c3ebfed6ba40f790e08b9.tar.gz
(Fx_popup_menu): Explicitly init f, xpos, and ypos.
(Fx_popup_dialog): Explicitly init f. (w32_menu_display_help): Use empty_string.
-rw-r--r--src/w32menu.c8
1 files 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];