From 2c38fed29df8fef80ce8268841e8506e2ceb19e7 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 24 Jul 2013 14:55:00 +0000 Subject: [PATCH] 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 --- tests/MipMapTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/MipMapTest.cpp b/tests/MipMapTest.cpp index cde0ef6aac..398827367a 100644 --- a/tests/MipMapTest.cpp +++ b/tests/MipMapTest.cpp @@ -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) {