Skip to content

Commit

Permalink
hash table REFACTOR use return value
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Oct 4, 2023
1 parent b42b8f5 commit 5911880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hash_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ __lyht_insert_with_resize_cb(struct ly_ht *ht, void *val_p, uint32_t hash, lyht_
ret = lyht_resize(ht, 1, check);
/* if hash_table was resized, we need to find new matching value */
if ((ret == LY_SUCCESS) && match_p) {
lyht_find(ht, val_p, hash, match_p);
ret = lyht_find(ht, val_p, hash, match_p);
assert(!ret);
}

if (resize_val_equal) {
Expand Down

0 comments on commit 5911880

Please sign in to comment.