Skip to content

tool_getparam: remove two nextarg NULL checks#17483

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/nextarg-nullcheck
Closed

tool_getparam: remove two nextarg NULL checks#17483
bagder wants to merge 1 commit intomasterfrom
bagder/nextarg-nullcheck

Conversation

@bagder
Copy link
Copy Markdown
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