From f004e3a91b4da54de3687f99526fff624c8d517b Mon Sep 17 00:00:00 2001 From: NtsDK Date: Fri, 1 Jul 2016 05:37:33 +0500 Subject: [PATCH] Update darray.c Added end zeroing on DArray_clear call. --- src/lcthw/darray.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lcthw/darray.c b/src/lcthw/darray.c index d603f9b..05d11b4 100644 --- a/src/lcthw/darray.c +++ b/src/lcthw/darray.c @@ -33,6 +33,7 @@ void DArray_clear(DArray * array) } } } + array->end = 0; } static inline int DArray_resize(DArray * array, size_t newsize)