commit cfb2372a7778aff29e3231fb1e99d3e2f9e44788
parent 8803c687c1434fcb67c5d9b508d99fdd93b7bb7f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 6 Mar 2024 16:26:53 +0100
Correction of the tabulation creation
Several member variables were not initialized correctly.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/swf_tabulation.c b/src/swf_tabulation.c
@@ -65,6 +65,8 @@ tabulation_create
allocator = mem_allocator ? mem_allocator : &mem_default_allocator;
tab = MEM_CALLOC(allocator, 1, sizeof(*tab));
if(!tab) { res = RES_MEM_ERR; goto error; }
+ ref_init(&tab->ref);
+ tab->allocator = allocator;
darray_item_init(allocator, &tab->items);
exit: