diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 8093e7f8d..326c1f87f 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -1271,7 +1271,7 @@ ui_init(int nCmdShow) WCHAR title[200]; WNDCLASSEX wincl; /* buffer for main window's class */ RAWINPUTDEVICE ridev; /* RawInput device */ - MSG messages; /* received-messages buffer */ + MSG messages = {0}; /* received-messages buffer */ HWND hwnd = NULL; /* handle for our window */ HACCEL haccel; /* handle to accelerator table */ RECT sbar_rect; /* RECT of the status bar */