Index: src/core/SkTDynamicHash.h |
diff --git a/src/core/SkTDynamicHash.h b/src/core/SkTDynamicHash.h |
index 47412c34b12e2cee6233371ce5f7d890a1edbb1d..4cb44204c85f61130354d25c78c7924249fe66f8 100644 |
--- a/src/core/SkTDynamicHash.h |
+++ b/src/core/SkTDynamicHash.h |
@@ -92,9 +92,7 @@ private: |
static T* Deleted() { return reinterpret_cast<T*>(1); } // Also an invalid pointer. |
static T** AllocArray(int capacity) { |
- T** array = (T**)sk_malloc_throw(sizeof(T*) * capacity); |
- sk_bzero(array, sizeof(T*) * capacity); // All cells == Empty(). |
- return array; |
+ return (T**)sk_calloc_throw(sizeof(T*) * capacity); // All cells == Empty(). |
} |
void reset(int capacity) { |