From 79b6f60277ea923f42e62794869c10df50aec5d2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 12 Aug 2025 14:24:42 +0200 Subject: [PATCH] panoramiX: XineramaGetImageData(): scope `pBox` Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/panoramiX.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index f9f93be900..297d6723d0 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -1137,7 +1137,7 @@ XineramaGetImageData(DrawablePtr *pDrawables, char *data, int pitch, Bool isRoot) { RegionRec SrcRegion, GrabRegion; - BoxRec SrcBox, *pbox; + BoxRec SrcBox; int size, sizeNeeded, ScratchPitch, depth; DrawablePtr pDraw = pDrawables[0]; char *ScratchMem = NULL; @@ -1192,7 +1192,7 @@ XineramaGetImageData(DrawablePtr *pDrawables, int nbox = RegionNumRects(&GrabRegion); if (nbox) { - pbox = RegionRects(&GrabRegion); + BoxRec *pbox = RegionRects(&GrabRegion); while (nbox--) { int w = pbox->x2 - pbox->x1;