Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index 45e53af155dc0805430c349ca53777e4a7d37ad1..fb1711372c7840b7bb29af678d1ada1c625f7a8f 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -131,6 +131,7 @@ static void test_duplicate_scratch_key(skiatest::Reporter* reporter) { |
SkASSERT(0 == cache->getCachedResourceCount() && 0 == cache->getCachedResourceBytes()); |
GrCacheID::Key keyData; |
+ memset(&keyData, 0, sizeof(keyData)); |
GrCacheID::Domain domain = GrResourceKey::ScratchDomain(); |
GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType(); |
GrResourceKey scratchKey(GrCacheID(domain, keyData), t, 0); |