Index: src/pathops/SkOpBuilder.cpp |
diff --git a/src/pathops/SkOpBuilder.cpp b/src/pathops/SkOpBuilder.cpp |
index a434fbcf2bb002120e4c619b494b9b0ec2f75c91..2fbd4f0460b7a758deea38cfc9f18780e37ffba6 100644 |
--- a/src/pathops/SkOpBuilder.cpp |
+++ b/src/pathops/SkOpBuilder.cpp |
@@ -106,7 +106,7 @@ bool SkOpBuilder::resolve(SkPath* result) { |
SkPath original = *result; |
int count = fOps.count(); |
bool allUnion = true; |
- SkPathPriv::FirstDirection firstDir; |
+ SkPathPriv::FirstDirection firstDir = SkPathPriv::kUnknown_FirstDirection; |
for (int index = 0; index < count; ++index) { |
SkPath* test = &fPathRefs[index]; |
if (kUnion_SkPathOp != fOps[index] || test->isInverseFillType()) { |
@@ -120,7 +120,7 @@ bool SkOpBuilder::resolve(SkPath* result) { |
allUnion = false; |
break; |
} |
- if (index == 0) { |
+ if (firstDir == SkPathPriv::kUnknown_FirstDirection) { |
firstDir = dir; |
} else if (firstDir != dir) { |
SkPath temp; |