diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-11 16:19:09 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-11 19:55:09 +0200 |
commit | 0bbccfe001e005fb83ae0a9633bf11c4b3e25ce1 (patch) | |
tree | 4fc93b9a1e756a2685ebd1d97266d6bf27eceaec /src | |
parent | 9d2850bda946fab28f689d284fd670e5cf361d8f (diff) |
Initialize FirstPtBlock.next to make static analysis happy
Could in theory be triggered with a 0 line spanning elipsis.
Pick-to: 6.1
Change-Id: I2166ee354d2f7488e1fcddfcb8c949c8ca2452fe
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qregion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp index 1e0ce30528..6ca87cb416 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<QPoint *>(FirstPtBlock.data); + FirstPtBlock.next = nullptr; POINTBLOCK *tmpPtBlock; int numFullPtBlocks = 0; |