aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkPathOpsTSect.h
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-04-13 09:36:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-13 09:36:01 -0700
commit697ac1c138e8ff83cb90449ff378a000796f8a04 (patch)
treef7990731c2a67febac2c61c87c82ace1f91f9544 /src/pathops/SkPathOpsTSect.h
parent056c424de8659f27f8b970fb348f1601168636e6 (diff)
fix valgrind uninitialized issue
R=mtklein@google.com BUG=skia:3654 Review URL: https://codereview.chromium.org/1082753002
Diffstat (limited to 'src/pathops/SkPathOpsTSect.h')
-rw-r--r--src/pathops/SkPathOpsTSect.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h
index ae01a1dcba..9d63433330 100644
--- a/src/pathops/SkPathOpsTSect.h
+++ b/src/pathops/SkPathOpsTSect.h
@@ -16,8 +16,8 @@
template<typename TCurve>
class SkTCoincident {
public:
- SkTCoincident()
- : fCoincident(false) {
+ SkTCoincident() {
+ clear();
}
void clear() {
@@ -30,9 +30,8 @@ public:
}
void init() {
- fCoincident = false;
+ clear();
SkDEBUGCODE(fPerpPt.fX = fPerpPt.fY = SK_ScalarNaN);
- SkDEBUGCODE(fPerpT = SK_ScalarNaN);
}
void markCoincident() {