From 1d6522d4b24d824865529b6516bab4123c950f95 Mon Sep 17 00:00:00 2001 From: Henry Hu Date: Sun, 15 May 2016 21:32:20 -0400 Subject: initialize struct before using it --- src-qt5/core/libLumina/LuminaX11.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src-qt5/core/libLumina') diff --git a/src-qt5/core/libLumina/LuminaX11.cpp b/src-qt5/core/libLumina/LuminaX11.cpp index 1892f135..31720e72 100644 --- a/src-qt5/core/libLumina/LuminaX11.cpp +++ b/src-qt5/core/libLumina/LuminaX11.cpp @@ -682,6 +682,7 @@ void LXCB::MinimizeWindow(WId win){ //request that the window be unmapped/minimi //Need to send a client message event for the window so the WM picks it up xcb_client_message_event_t event; + memset(&event, 0, sizeof(event)); event.response_type = XCB_CLIENT_MESSAGE; event.format = 32; event.window = win; -- cgit