Skip to content

Commit 75fe798

Browse files
committed
Add default values for critnib_find local vars
1 parent 57782e5 commit 75fe798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/critnib/critnib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ int critnib_find(struct critnib *c, uintptr_t key, enum find_dir_t dir,
715715
uintptr_t *rkey, void **rvalue) {
716716
uint64_t wrs1, wrs2;
717717
struct critnib_leaf *k;
718-
uintptr_t _rkey;
719-
void **_rvalue;
718+
uintptr_t _rkey = (uintptr_t)0x0;
719+
void **_rvalue = NULL;
720720

721721
/* <42 ≡ ≤41 */
722722
if (dir < -1) {

0 commit comments

Comments
 (0)