Skip to content

Another round of double casted malloc/calloc #17717

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

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

jenshannoschwalm
Copy link
Collaborator

Avoid double casting in more malloc() calloc() calls where appropriate. Some formatting

@jenshannoschwalm jenshannoschwalm added the scope: codebase making darktable source code easier to manage label Oct 25, 2024
@jenshannoschwalm jenshannoschwalm added this to the 5.0 milestone Oct 25, 2024
Avoid double casting in more malloc() calloc() calls where appropriate.
Some formatting
@jenshannoschwalm jenshannoschwalm changed the title Another round of doube casted malloc/calloc Another round of double casted malloc/calloc Oct 25, 2024
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

BTW, I'm not sure those are double casting, just that malloc() returns void* which can silently assigned to whatever pointer.

@TurboGit TurboGit merged commit 0b2dcda into darktable-org:master Oct 25, 2024
6 checks passed
@jenshannoschwalm jenshannoschwalm deleted the more_mallocs branch October 25, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: codebase making darktable source code easier to manage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants