Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: "compared against NULL" fixed to "compared against 0"

...

Tool

Version

Checker

Description

Compass/ROSE

 

 

Can detect some violations of this rule. In particular, it warns when the argument to malloc() is a variable that has not been compared against NULL against 0 or that is known at compile time to be 0

...