changeset 41930:d5fc57bcb0f2

(w32_free_submenu_strings): Clear menu item struct before using.
author Jason Rumney <jasonr@gnu.org>
date Mon, 10 Dec 2001 22:52:51 +0000
parents 0093d705e21a
children c7e803b60fc6
files src/w32menu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32menu.c	Mon Dec 10 22:51:57 2001 +0000
+++ b/src/w32menu.c	Mon Dec 10 22:52:51 2001 +0000
@@ -2245,7 +2245,7 @@
   for (i = 0; i < num; i++)
     {
       MENUITEMINFO info;
-
+      bzero (&info, sizeof (info));
       info.cbSize = sizeof (info);
       info.fMask = MIIM_DATA | MIIM_TYPE | MIIM_SUBMENU;