tree schema BUGFIX hash table ht params are pointers to values
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c
index 9ebf51b..53b552a 100644
--- a/src/tree_schema_helpers.c
+++ b/src/tree_schema_helpers.c
@@ -444,7 +444,12 @@
 static ly_bool
 lysp_id_cmp(void *val1, void *val2, ly_bool UNUSED(mod), void *UNUSED(cb_data))
 {
-    return strcmp(val1, val2) == 0 ? 1 : 0;
+    char *id1, *id2;
+
+    id1 = *(char **)val1;
+    id2 = *(char **)val2;
+
+    return strcmp(id1, id2) == 0 ? 1 : 0;
 }
 
 LY_ERR