commit dab9d9b63ebe52eebf58e58dfccafcd21c53ad00 from: Stefan Sperling date: Mon Nov 05 15:41:53 2018 UTC actually initialize cache struct in got_object_cache_init() commit - 19ae6da15b9c1e2c10f4c66f2b654813419eb9cf commit + dab9d9b63ebe52eebf58e58dfccafcd21c53ad00 blob - 8957a460ff848f9b37f97758bbf16f33e1cf7e6e blob + 7957b39b0d062a400041ff34791a06d38d694832 --- lib/object_cache.c +++ lib/object_cache.c @@ -42,6 +42,8 @@ got_object_cache_init(struct got_object_cache *cache, { size_t size; + memset(cache, 0, sizeof(*cache)); + switch (type) { case GOT_OBJECT_CACHE_TYPE_OBJ: size = GOT_OBJECT_CACHE_SIZE_OBJ;