From ea1e61f88b7fe678110bf6c8878ea8b31b5c24eb Mon Sep 17 00:00:00 2001 From: Gavin Guinn Date: Fri, 21 Jan 2022 12:25:15 -0700 Subject: [PATCH] 0 Initalized packed array buffer --- PackedArray.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PackedArray.c b/PackedArray.c index b8ea36f..0a6e879 100644 --- a/PackedArray.c +++ b/PackedArray.c @@ -1,6 +1,8 @@ // see README.md for usage instructions. // (‑●‑●)> released under the WTFPL v2 license, by Gregory Pakosz (@gpakosz) +#include + #ifndef PACKEDARRAY_SELF #define PACKEDARRAY_SELF "PackedArray.c" #endif @@ -404,6 +406,8 @@ PackedArray* PackedArray_create(uint32_t bitsPerItem, uint32_t count) a->count = count; } + memset(a->buffer, 0, bufferSize); + return a; }