From b56b32bba7cede49c74a6cc8b449adeba6fbabb2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 May 2025 19:44:09 +0200 Subject: [PATCH] Xext: panoramix: fix uninitialized variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit | ../Xext/panoramiXprocs.c: In function ‘PanoramiXCopyArea’: | ../Xext/panoramiXprocs.c:1152:13: warning: use of uninitialized value ‘pGC’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] | 1152 | if (pGC && pGC->graphicsExposures) { | | ^~~ Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/panoramiXprocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c index ef99677d4..4008541b6 100644 --- a/Xext/panoramiXprocs.c +++ b/Xext/panoramiXprocs.c @@ -1098,7 +1098,7 @@ PanoramiXCopyArea(ClientPtr client) if ((dst->type == XRT_PIXMAP) && (src->type == XRT_WINDOW)) { DrawablePtr drawables[MAXSCREENS]; DrawablePtr pDst; - GCPtr pGC; + GCPtr pGC = NULL; char *data; int pitch, rc;