From 066897bf3f4283bafd3fad55939586e8845cf6df Mon Sep 17 00:00:00 2001 From: Minsoo Choo Date: Sun, 7 Apr 2024 07:43:03 -0400 Subject: [PATCH] initialize delta with NULL (#226) 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`. --- src/ck_rhs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ck_rhs.c b/src/ck_rhs.c index aaf1d71c..81e69217 100644 --- a/src/ck_rhs.c +++ b/src/ck_rhs.c @@ -1145,7 +1145,7 @@ ck_rhs_apply(struct ck_rhs *hs, void *cl) { const void *insert; - const void *object, *delta = false; + const void *object, *delta = NULL; unsigned long n_probes; long slot, first; struct ck_rhs_map *map;