Closed SchokiCoder closed 1 year ago
If the recipe.txt is completely empty, a free on Reader.region, which holds a pointer to the global variable "empty" is performed.
I changed it to check Reader.size instead. No more "free(): invalid pointer" and the tests ran just like before.
well spotted and fixed!
If the recipe.txt is completely empty, a free on Reader.region, which holds a pointer to the global variable "empty" is performed.
I changed it to check Reader.size instead. No more "free(): invalid pointer" and the tests ran just like before.