Skip to content

Commit

Permalink
Day 14: fix warning about uninitialized values
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeladler committed Dec 16, 2023
1 parent bec862a commit efa8e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/day14/solve.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void solve(char *buf, size_t buf_size, Solution *result) {

i64 part1, part2 = 0;

XXH128_hash_t hashes[MAX_CYCLE_LEN];
XXH128_hash_t hashes[MAX_CYCLE_LEN] = {0};
int hashes_count = 0;
_cleanup_(ust_XXH128_hash_t_free) ust_XXH128_hash_t seen = ust_XXH128_hash_t_init(hash, equal);
ust_XXH128_hash_t_reserve(&seen, MAX_CYCLE_LEN);
Expand Down

0 comments on commit efa8e61

Please sign in to comment.