]> git.codecow.com Git - Monocypher.git/commit
Use NULL instead of 0 for null pointers
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 17 Oct 2023 04:35:39 +0000 (06:35 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 17 Oct 2023 04:35:39 +0000 (06:35 +0200)
commit9a2c0d4478f4e0a94b59b478bfc6e058a0f20adf
tree7d6ebfff8762615640b89c97d1d12bc9e150051e
parent7c8313724d4de8136f44ef197d65bd114058fa83
Use NULL instead of 0 for null pointers

Turns out the standard guarantees that NULL is defined in `stddef.h`.
Contrary to what I used to believe, using it doesn't induce any further
dependency.  `0` is also guaranteed by the standard to work, but it's
less explicit and in some cases more error prone.
src/monocypher.c