Skip to content

Commit 1a06240

Browse files
authored
Merge pull request #616 from sysprog21/fix-asan
Fix -Werror=maybe-uninitialized warning
2 parents 9a33410 + bb0e4c5 commit 1a06240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ bool map_insert(map_t obj, const void *key, const void *val)
572572
return false;
573573

574574
rb_path_entry_t path[RB_MAX_DEPTH];
575-
rb_path_entry_t *pathp;
575+
rb_path_entry_t *pathp = NULL;
576576

577577
/* Single traversal to check existence and get insertion point */
578578
const map_node_t *existing = rb_insert_unique(obj, key, path, &pathp);

0 commit comments

Comments
 (0)