codeql-coding-standards
codeql-coding-standards copied to clipboard
`RULE-11-4`: Consider `0` to be a null pointer constant.
Affected rules
-
RULE-11-1 -
RULE-11-4 -
RULE-11-5 -
RULE-11-6
Description
According to MISRA C 2012 8.11 zero is a null pointer constant, and so should not be flagged as non_compliant.
Example
unsigned int *v4 = 0; // COMPLIANT