Initialize margin, which was being used uninitialized in compute_bounds()

on some code paths we apparently aren't exercising.
Caught by Matt Woodrow & gwright@kde.org

http://codereview.appspot.com/5519056/
http://code.google.com/p/skia/issues/detail?id=435



git-svn-id: http://skia.googlecode.com/svn/trunk@3474 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
tomhudson@google.com 2012-03-23 14:46:48 +00:00
parent 5e41b37b23
commit 6db75fc2c3

View File

@ -2553,7 +2553,7 @@ static bool compute_bounds(const SkPath& devPath, const SkIRect* clipBounds,
pathBounds.roundOut(bounds);
}
SkIPoint margin;
SkIPoint margin = SkIPoint::Make(0, 0);
if (filter) {
SkASSERT(filterMatrix);