aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/MipMapTest.cpp3
1 files changed, 2 insertions, 1 deletions
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) {