From 82ced1801515745bd1e0def16fbef260a2a01e0d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 1 Aug 2026 16:29:18 +1000 Subject: [PATCH] [idd] driver: initialize messages to zero --- idd/LGIdd/CPipeServer.cpp | 8 ++++---- idd/LGIddHelper/CPipeClient.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/idd/LGIdd/CPipeServer.cpp b/idd/LGIdd/CPipeServer.cpp index 95170968..24fab90b 100644 --- a/idd/LGIdd/CPipeServer.cpp +++ b/idd/LGIdd/CPipeServer.cpp @@ -279,7 +279,7 @@ void CPipeServer::SetCursorPos(uint32_t x, uint32_t y) if (!m_connected) return; - LGPipeMsg msg; + LGPipeMsg msg = {}; msg.size = sizeof(msg); msg.type = LGPipeMsg::SETCURSORPOS; msg.curorPos.x = x; @@ -289,7 +289,7 @@ void CPipeServer::SetCursorPos(uint32_t x, uint32_t y) void CPipeServer::SetDisplayMode(uint32_t width, uint32_t height, uint32_t refresh) { - LGPipeMsg msg; + LGPipeMsg msg = {}; msg.size = sizeof(msg); msg.type = LGPipeMsg::SETDISPLAYMODE; msg.displayMode.width = width; @@ -300,7 +300,7 @@ void CPipeServer::SetDisplayMode(uint32_t width, uint32_t height, uint32_t refre void CPipeServer::SetGPUStatus(bool software) { - LGPipeMsg msg; + LGPipeMsg msg = {}; msg.size = sizeof(msg); msg.type = LGPipeMsg::GPUSTATUS; msg.gpuStatus.software = software; @@ -310,7 +310,7 @@ void CPipeServer::SetGPUStatus(bool software) void CPipeServer::ResolutionRejected(uint32_t width, uint32_t height, uint32_t requiredSizeMiB) { - LGPipeMsg msg; + LGPipeMsg msg = {}; msg.size = sizeof(msg); msg.type = LGPipeMsg::RESOLUTIONREJECTED; msg.resolutionRejected.width = width; diff --git a/idd/LGIddHelper/CPipeClient.cpp b/idd/LGIddHelper/CPipeClient.cpp index 520fbbf0..61dfad47 100644 --- a/idd/LGIddHelper/CPipeClient.cpp +++ b/idd/LGIddHelper/CPipeClient.cpp @@ -252,7 +252,7 @@ void CPipeClient::ReloadSettings() if (!m_connected) return; - LGPipeMsg msg; + LGPipeMsg msg = {}; msg.size = sizeof(msg); msg.type = LGPipeMsg::RELOADSETTINGS; WriteMsg(msg);