Fix bug, where NULLs appear inside tree
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 21 Jun 2024 08:57:50 +0000 (10:57 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 21 Jun 2024 08:57:50 +0000 (10:57 +0200)
commit3abc55033ec23bf1d3593e60843263033b16b409
tree44217ba08d72a38cd9158ce4ff25033ade4781b1
parent30931d514b237451f128d489ceeca40de8e40b85
Fix bug, where NULLs appear inside tree

This bug was caused because the tree nodes are filled from the end
when reducing. Instead of just inserting to the start it was inserting
at the final position.
When inserting to vector outside of range all the nonexistent entries
are initialized to 0. If another insertion happes after that, the
0 entries are not filled but moved to make space for the new entry.
ft_parse/ft_parse.c