From eff166ad9dddec4c3d45bc0b7009f816a3349247 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 4 Apr 2023 13:31:21 -0600 Subject: [PATCH] array: set pointer reference after reallocation Signed-off-by: Eduardo Silva --- src/cfl_array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfl_array.c b/src/cfl_array.c index 47d2afb..e64fbf5 100644 --- a/src/cfl_array.c +++ b/src/cfl_array.c @@ -139,6 +139,7 @@ int cfl_array_append(struct cfl_array *array, return -1; } array->slot_count = new_slot_count; + array->entries = tmp; } else { return -1;