More variable initializations and curly braces to avoid Linux compiler
warnings.



git-svn-id: http://skia.googlecode.com/svn/trunk@1993 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 1b9121e..e0d5b69 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -218,10 +218,12 @@
 
     int corners = 0;
     SkPoint first, last;
-    int firstDirection;
-    int lastDirection;
-    int nextDirection;
-    bool closedOrMoved;
+    first.set(0, 0);
+    last.set(0, 0);
+    int firstDirection = 0;
+    int lastDirection = 0;
+    int nextDirection = 0;
+    bool closedOrMoved = false;
     bool autoClose = false;
     const uint8_t* verbs = fVerbs.begin();
     const uint8_t* verbStop = fVerbs.end();
@@ -269,7 +271,7 @@
                 // Possible values for corners are 2, 3, and 4.
                 // When corners == 3, nextDirection opposes firstDirection.
                 // Otherwise, nextDirection at corner 2 opposes corner 4.
-                int turn = firstDirection ^ corners - 1;
+                int turn = firstDirection ^ (corners - 1);
                 int directionCycle = 3 == corners ? 0 : nextDirection ^ turn;
                 if ((directionCycle ^ turn) != nextDirection) {
                     return false; // direction didn't follow cycle