Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix recent bug in writer that closed stream, which should be left to caller to manage #307

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

liquidaty
Copy link
Owner

in addition, there is no assurance that w->out.stream is a FILE * or that we can otherwise assume that fclose is the correct way to close it

@iamazeem obviously this change was made for a reason-- please examine and make the appropriate changes to resolve while handling all stream closure outside of zsv_writer_delete().

In otherwords, zsv_writer_delete() should not close anything that was not opened by zsv_writer_new() (or any other zsv_writer function)

@liquidaty liquidaty merged commit 0382dff into main Nov 28, 2024
13 checks passed
@iamazeem iamazeem deleted the writer-bug-20241128 branch November 28, 2024 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant