Use the explicit NULL macro for pointer comparisons. #316

pull gmaxwell wants to merge 1 commits into bitcoin-core:master from gmaxwell:ifnull changing 6 files +18 −18
  1. gmaxwell commented at 10:02 PM on September 23, 2015: contributor

    This makes it more clear that a null check is intended. Avoiding the use of a pointer as a test condition alse increases the type-safety of the comparisons.

    (This is also MISRA C 2012 rules 14.4 and 11.9)

  2. Use the explicit NULL macro for pointer comparisons.
    This makes it more clear that a null check is intended. Avoiding the
     use of a pointer as a test condition alse increases the type-safety
     of the comparisons.
    
    (This is also MISRA C 2012 rules 14.4 and 11.9)
    2b199de888
  3. gmaxwell commented at 10:47 PM on September 23, 2015: contributor

    FWIW, resulting shared library is bit identical for me.

  4. sipa commented at 5:36 PM on September 24, 2015: contributor

    utACK

  5. sipa merged this on Sep 24, 2015
  6. sipa closed this on Sep 24, 2015

  7. sipa referenced this in commit 1f414378b8 on Sep 24, 2015
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 11:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me