composite: declare and initialize reply struct when needed

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-01 13:23:22 +01:00
committed by Enrico Weigelt
parent 7d8f084fbf
commit d0b6510b64

View File

@@ -690,7 +690,6 @@ ProcCompositeGetOverlayWindow(ClientPtr client)
if (!compositeUseXinerama)
return SingleCompositeGetOverlayWindow(client, stuff);
xCompositeGetOverlayWindowReply rep;
WindowPtr pWin;
ScreenPtr pScreen;
CompOverlayClientPtr pOc;
@@ -766,7 +765,7 @@ ProcCompositeGetOverlayWindow(ClientPtr client)
cs = GetCompScreen(dixGetMasterScreen());
rep = (xCompositeGetOverlayWindowReply) {
xCompositeGetOverlayWindowReply rep = {
.overlayWin = cs->pOverlayWin->drawable.id
};