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

Remove variable length array allocations for #1817 #1819

Merged
merged 5 commits into from
Jan 22, 2025
Merged

Conversation

g5t
Copy link
Contributor

@g5t g5t commented Jan 22, 2025

Replace variable length array allocation with initializer-list allocation.

This is a partial fix for #1817 but does not correct all instances of variable length array allocation.

g5t added 5 commits January 22, 2025 11:53
Replace variable length array allocation with initializer-list allocation.
Missed one allocation before.
Add missing `free(type)`, correct allocation-error check against `NULL` instead of `null`.
@g5t g5t changed the title Update supermirror-lib.c for #1817 Remove variable length array allocations for #1817 Jan 22, 2025
@willend
Copy link
Contributor

willend commented Jan 22, 2025

@g5t thanks for the PR, edits very reasonable.0 Merging on the basis that all test are now flagged green.

@willend willend merged commit 0308b6f into main Jan 22, 2025
32 checks passed
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.

2 participants