concurrencykit / ck

Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.
http://concurrencykit.org/
Other
2.34k stars 312 forks source link

initialize delta with NULL #226

Closed fel1x-developer closed 4 months ago

fel1x-developer commented 4 months ago

Initializing a pointer with false triggers undefined behaviour, and this is not valid since C23. When pointer needs to be initialized to 0, NULL is preferred over false.

cognet commented 4 months ago

Merged, thanks!