]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_popup_menu): Explicitly init f, xpos, and ypos.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 30 Oct 2001 03:38:24 +0000 (03:38 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 30 Oct 2001 03:38:24 +0000 (03:38 +0000)
(Fx_popup_dialog): Explicitly init f.
(w32_menu_display_help): Use empty_string.

src/w32menu.c

index 74d4f2754b46c98c06e3cc2d49e0603dfb5ce631..1dd1ed638040be72f0b7d4d1607748ca18cd0383 100644 (file)
@@ -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];