diff options
author | lsalzman <lsalzman@mozilla.com> | 2016-06-07 19:08:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-07 19:08:58 -0700 |
commit | 2af4599b5c514933bf997d4837ddaaf24fc61cd7 (patch) | |
tree | cb788140af3bd1c34c0806e0a11f584719ed5650 /src/pathops/SkPathOpsWinding.cpp | |
parent | 4dbbd04314cc0606f8d3bafe515c97e52c180f73 (diff) |
A Mozilla developer ran the µmix static analyzer on its codebase and incidentally found some issues regarding null checks in Skia. This fixes the issues that were found.
Downstream bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1278452
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2046563007
Review-Url: https://codereview.chromium.org/2046563007
Diffstat (limited to 'src/pathops/SkPathOpsWinding.cpp')
-rw-r--r-- | src/pathops/SkPathOpsWinding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathops/SkPathOpsWinding.cpp b/src/pathops/SkPathOpsWinding.cpp index 0abffb0586..584ebd457a 100644 --- a/src/pathops/SkPathOpsWinding.cpp +++ b/src/pathops/SkPathOpsWinding.cpp @@ -289,10 +289,10 @@ bool SkOpSpan::sortableTop(SkOpContour* contourHead) { bool ccw = ccw_dxdy(hit->fSlope, dir); // SkASSERT(!approximately_zero(hit->fT) || !hit->fValid); SkOpSpan* span = hit->fSpan; - SkOpSegment* hitSegment = span->segment(); if (!span) { return false; } + SkOpSegment* hitSegment = span->segment(); if (span->windValue() == 0 && span->oppValue() == 0) { continue; } |