Skip to content

tool_getparam: remove two nextarg NULL checks #17483

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

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented May 29, 2025

Because by checking for NULL when the argument can never be NULL, they mislead the static analyzers into thinking it can be NULL and they the analyzers tend to warn about other places in the code without the check!

Because by checking for NULL when the argument can never be NULL, they
mislead the static analyzers into thinking it *can* be NULL and they the
analyzers tend to warn about other places in the code *without* the
check!
@bagder bagder marked this pull request as ready for review May 29, 2025 09:54
@bagder bagder closed this in 12d13b8 May 29, 2025
@bagder bagder deleted the bagder/nextarg-nullcheck branch May 29, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant