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:
parent
5e41b37b23
commit
6db75fc2c3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user