From a21c9ef4200cc956f0706f854a100662cccaba8b Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Feb 2026 19:39:50 +0100 Subject: [PATCH] dri2: declare variables where needed in DRI2BlockClient() Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/dri2/dri2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Xext/dri2/dri2.c b/Xext/dri2/dri2.c index 2bcf86c530..c69cecb02e 100644 --- a/Xext/dri2/dri2.c +++ b/Xext/dri2/dri2.c @@ -750,9 +750,7 @@ DRI2ThrottleClient(ClientPtr client, DrawablePtr pDraw) void DRI2BlockClient(ClientPtr client, DrawablePtr pDraw) { - DRI2DrawablePtr pPriv; - - pPriv = DRI2GetDrawable(pDraw); + DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw); if (pPriv == NULL) return;