Skip to content

Commit 5911880

Browse files
committed
hash table REFACTOR use return value
1 parent b42b8f5 commit 5911880

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hash_table.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ __lyht_insert_with_resize_cb(struct ly_ht *ht, void *val_p, uint32_t hash, lyht_
404404
ret = lyht_resize(ht, 1, check);
405405
/* if hash_table was resized, we need to find new matching value */
406406
if ((ret == LY_SUCCESS) && match_p) {
407-
lyht_find(ht, val_p, hash, match_p);
407+
ret = lyht_find(ht, val_p, hash, match_p);
408+
assert(!ret);
408409
}
409410

410411
if (resize_val_equal) {

0 commit comments

Comments
 (0)