summaryrefslogtreecommitdiff
path: root/src/w32menu.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2001-12-10 22:52:51 +0000
committerJason Rumney <jasonr@gnu.org>2001-12-10 22:52:51 +0000
commit37647b2dff3535ca6d599bacdfcbed64904ba795 (patch)
tree473f4ffea3336d75fda33e15b4500ed288dcdf87 /src/w32menu.c
parent8af0103338603236a162c5aa02105ef6dc5aadad (diff)
downloademacs-37647b2dff3535ca6d599bacdfcbed64904ba795.tar.gz
(w32_free_submenu_strings): Clear menu item struct
before using.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r--src/w32menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index 99376360187..03ffb301f01 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -2245,7 +2245,7 @@ w32_free_submenu_strings (menu)
for (i = 0; i < num; i++)
{
MENUITEMINFO info;
-
+ bzero (&info, sizeof (info));
info.cbSize = sizeof (info);
info.fMask = MIIM_DATA | MIIM_TYPE | MIIM_SUBMENU;