From d8db7c3908712a4634453b5ceab19ecf0a634f91 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Feb 2026 19:18:14 +0100 Subject: [PATCH] dri2: declare variables when needed in DRI2ThrottleClient() 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 ff8275f081..5838218555 100644 --- a/Xext/dri2/dri2.c +++ b/Xext/dri2/dri2.c @@ -731,9 +731,7 @@ DRI2InvalidateDrawable(DrawablePtr pDraw) Bool DRI2ThrottleClient(ClientPtr client, DrawablePtr pDraw) { - DRI2DrawablePtr pPriv; - - pPriv = DRI2GetDrawable(pDraw); + DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw); if (pPriv == NULL) return FALSE;