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

checksrc: complain on == NULL or != 0 checks in conditions #6912

Merged
merged 2 commits into from Apr 22, 2021

Conversation

bagder
Copy link
Member

@bagder bagder commented Apr 19, 2021

makes these boolean conditional checks consistent throughout the code base. Use if(!var) to check for == NULL and if(var) to check for != 0.

... remove '== NULL' and '!= 0'

Closes #6912
... to make them all consistenly use if(!var) and if(var)

Also added a few missing warnings to the documentation.

Closes #6912
@bagder bagder force-pushed the bagder/checksrc-conditions branch from da38cd0 to 52fab72 Compare April 22, 2021 07:10
@bagder bagder closed this in 063d3f3 Apr 22, 2021
@bagder bagder merged commit 52fab72 into master Apr 22, 2021
@bagder bagder deleted the bagder/checksrc-conditions branch April 22, 2021 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants