Make sure t_vecs are initialized before free
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 1 Aug 2024 07:30:06 +0000 (09:30 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 1 Aug 2024 07:30:06 +0000 (09:30 +0200)
commit9a5097380d83ce777e4871f88116800b7036a5ec
tree6bcdfeb95e04681e7cb11e1c629340ae59375376
parentead6757db67ab88b092cd7a064f9a835e6fb9478
Make sure t_vecs are initialized before free

Short circuiting was meant to save the computation resources but causes
assignments not to be initialized when redirections encounter a problem.
This could be solved by initializing assignments outside of
save_assignments or by letting save_assignments initialize the
assignments even though it won't be used. I opted for the later.
src/execution.c