From 591188049fb5fc647481c1486e4d58de6ac566e3 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Wed, 4 Oct 2023 16:00:26 +0200 Subject: [PATCH] hash table REFACTOR use return value --- src/hash_table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hash_table.c b/src/hash_table.c index fd88e3d93..3d8d5f24d 100644 --- a/src/hash_table.c +++ b/src/hash_table.c @@ -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) {