From f9b57529346b1863e52b663702083a616922e0a1 Mon Sep 17 00:00:00 2001 From: "kbr@google.com" Date: Fri, 26 Feb 2010 00:57:51 +0000 Subject: Fixed uninitialized variables breaking Linux build after checkin of http://codereview.chromium.org/652016 . BUG=none TEST=built and tested on Linux TBR=gman Review URL: http://codereview.chromium.org/661143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40084 0039d316-1c4b-4281-b951-d872f2087c98 --- o3d/core/cross/gpu2d/path_processor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'o3d') diff --git a/o3d/core/cross/gpu2d/path_processor.cc b/o3d/core/cross/gpu2d/path_processor.cc index ccc31df..39f9065 100644 --- a/o3d/core/cross/gpu2d/path_processor.cc +++ b/o3d/core/cross/gpu2d/path_processor.cc @@ -312,7 +312,7 @@ class Segment { SkPoint get_interior_vertex(int index) const { DCHECK(index >= 0 && index < num_interior_vertices()); if (kind_ == kCubic) { - SkPoint res; + SkPoint res = { 0 }; if (triangulator_) { LocalTriangulator::Vertex* vertex = triangulator_->get_interior_vertex(index); @@ -635,8 +635,8 @@ void PathProcessor::BuildContours(const SkPath& path) { SkPoint pts[4]; SkPath::Verb verb; Contour* contour = NULL; - SkPoint cur_pt; - SkPoint move_to_pt; + SkPoint cur_pt = { 0 }; + SkPoint move_to_pt = { 0 }; do { verb = iter.next(pts); if (verb != SkPath::kMove_Verb) { -- cgit v1.1