From 0a0716d6c345b38536b1b25eb6d5fd09c5d17d3d Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Thu, 4 Jan 2024 15:02:12 +0100 Subject: [PATCH] tree data BUGFIX hash table item size --- src/tree_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree_data.c b/src/tree_data.c index 809a257ac..9181c89ed 100644 --- a/src/tree_data.c +++ b/src/tree_data.c @@ -3062,7 +3062,7 @@ lyd_trim_xpath(struct lyd_node **tree, const char *xpath, const struct lyxp_var LY_CHECK_GOTO(ret, cleanup); /* create hash table for all the parents of results */ - parent_ht = lyht_new(32, sizeof *node, lyd_trim_equal_cb, NULL, 1); + parent_ht = lyht_new(32, sizeof node, lyd_trim_equal_cb, NULL, 1); LY_CHECK_GOTO(!parent_ht, cleanup); for (i = 0; i < xp_set.used; ++i) {