diff options
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-28 21:03:22 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-28 21:03:22 +0000 |
commit | 6390c72cfb3e371a774a627d5f496dc67558e119 (patch) | |
tree | 8cbe4da51ed2b8d427ce099a429ce806ddddf1e3 /src/gpu | |
parent | 5370cd969d8f3957e4306068e6195ac1bca3d6cd (diff) |
Fix Coverity reports. (Mostly use of uninitialised values.)
CID=537,103419,103631,103632,103633
Initial review: https://codereview.appspot.com/5936047/
Review URL: https://codereview.appspot.com/5935051
git-svn-id: http://skia.googlecode.com/svn/trunk@3534 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrAAConvexPathRenderer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp index 7638067f1a..c539060aac 100644 --- a/src/gpu/GrAAConvexPathRenderer.cpp +++ b/src/gpu/GrAAConvexPathRenderer.cpp @@ -53,10 +53,9 @@ typedef SkTArray<Segment, true> SegmentArray; void center_of_mass(const SegmentArray& segments, SkPoint* c) { GrScalar area = 0; - SkPoint center; - center.set(0, 0); + SkPoint center = {0, 0}; int count = segments.count(); - SkPoint p0; + SkPoint p0 = {0, 0}; if (count > 2) { // We translate the polygon so that the first point is at the origin. // This avoids some precision issues with small area polygons far away |