use sk_bzero to init level, since I got the number of 0s wrong using { }

git-svn-id: http://skia.googlecode.com/svn/trunk@10308 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-07-24 14:55:00 +00:00
parent 87e74b6f03
commit 2c38fed29d

View File

@ -31,7 +31,8 @@ static void TestMipMap(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1, NULL));
REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1 * 2, NULL));
SkMipMap::Level prevLevel = { 0, 0, 0, 0 };
SkMipMap::Level prevLevel;
sk_bzero(&prevLevel, sizeof(prevLevel));
SkScalar scale = SK_Scalar1;
for (int j = 0; j < 30; ++j) {