Assert that pointer is not nullptr before dereferencing
Fix static analyzer warning 0dc0b2a764417025a335a3a60b814335. Change-Id: I9891194b74dda51032c887b9351fe7314174fcd6 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
parent
70af64433f
commit
95a31d0738
@ -50,6 +50,7 @@ QT_BEGIN_NAMESPACE
|
||||
void QTriangulatingStroker::endCapOrJoinClosed(const qreal *start, const qreal *cur,
|
||||
bool implicitClose, bool endsAtStart)
|
||||
{
|
||||
Q_ASSERT(start);
|
||||
if (endsAtStart) {
|
||||
join(start + 2);
|
||||
} else if (implicitClose) {
|
||||
|
Loading…
Reference in New Issue
Block a user