Skip to content

Conversation

WolframAlph
Copy link
Contributor

@WolframAlph WolframAlph commented Mar 25, 2025

I believe this memset is unnecessary as all of the struct fields (except for cf_finally_used) are initialized explicitly anyway. Therefore removing it and initializing cf_finally_used explicitly as well.

@iritkatriel
Copy link
Member

We do this in other places - set everything to 0 and then override other fields. If someone adds a new field which should be initialised to 0 they will probably not bother to update initialisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants