Skip to content

Commit

Permalink
array: set pointer reference after reallocation
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 4, 2023
1 parent b83dd23 commit eff166a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cfl_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eff166a

Please sign in to comment.