Always init SkPathRef variables.
authorsenorblanco <senorblanco@chromium.org>
Thu, 11 Aug 2016 19:23:08 +0000 (12:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Aug 2016 19:23:08 +0000 (12:23 -0700)
[Cherry-pick of 9c1d45d986f3c58593fde0fd62ab22e056dd3881 to m53 branch.]

BUG=623195
NOTREECHECKS=true
NOTRY=true
NOPRESUBMIT=true
TBR=bsalomon@google.com

Review-Url: https://codereview.chromium.org/2235363002

include/core/SkPathRef.h

index 0002b594b48aa724882e2488509e8fbc927bbadc..344e705fc3910fd872cbe32b6026f6360e138cea 100644 (file)
@@ -335,8 +335,8 @@ private:
         fIsOval = false;
         fIsRRect = false;
         // The next two values don't matter unless fIsOval or fIsRRect are true.
-        SkDEBUGCODE(fRRectOrOvalIsCCW = false);
-        SkDEBUGCODE(fRRectOrOvalStartIdx = 0xAC);
+        fRRectOrOvalIsCCW = false;
+        fRRectOrOvalStartIdx = 0xAC;
         SkDEBUGCODE(fEditorsAttached = 0;)
         SkDEBUGCODE(this->validate();)
     }