Skip to content

Commit

Permalink
initialize delta with NULL (#226)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
fel1x-developer committed Apr 7, 2024
1 parent 981e142 commit 066897b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ck_rhs.c
Expand Up @@ -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;
Expand Down

0 comments on commit 066897b

Please sign in to comment.