From 029a1c532981897c0361a9ffcd88fa1329b4584b Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 11 May 2021 16:19:09 +0200 Subject: [PATCH] Initialize FirstPtBlock.next to make static analysis happy Could in theory be triggered with a 0 line spanning elipsis. Change-Id: I2166ee354d2f7488e1fcddfcb8c949c8ca2452fe Reviewed-by: Eirik Aavitsland (cherry picked from commit 0bbccfe001e005fb83ae0a9633bf11c4b3e25ce1) Reviewed-by: Qt Cherry-pick Bot --- src/gui/painting/qregion.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp index df1f2575fe7..20c6d1025ff 100644 --- a/src/gui/painting/qregion.cpp +++ b/src/gui/painting/qregion.cpp @@ -3569,6 +3569,7 @@ static QRegionPrivate *PolygonRegion(const QPoint *Pts, int Count, int rule) int fixWAET = false; POINTBLOCK FirstPtBlock, *curPtBlock; /* PtBlock buffers */ FirstPtBlock.pts = reinterpret_cast(FirstPtBlock.data); + FirstPtBlock.next = nullptr; POINTBLOCK *tmpPtBlock; int numFullPtBlocks = 0;