This is an automated email from the ASF dual-hosted git repository.
martin-g pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/main by this push:
new d85a45b4f5 Fix wrong schema accessor in avro_generic_map_class (#3823)
d85a45b4f5 is described below
commit d85a45b4f53c3b74e6dab3ba9be48932e301b50b
Author: KyleKim107 <[email protected]>
AuthorDate: Fri Jun 19 02:58:41 2026 -0500
Fix wrong schema accessor in avro_generic_map_class (#3823)
---
lang/c/src/generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang/c/src/generic.c b/lang/c/src/generic.c
index e614eb3f82..6803a80154 100644
--- a/lang/c/src/generic.c
+++ b/lang/c/src/generic.c
@@ -2778,7 +2778,7 @@ static avro_generic_value_iface_t AVRO_GENERIC_MAP_CLASS
=
static avro_generic_value_iface_t *
avro_generic_map_class(avro_schema_t schema, memoize_state_t *state)
{
- avro_schema_t child_schema = avro_schema_array_items(schema);
+ avro_schema_t child_schema = avro_schema_map_values(schema);
avro_generic_value_iface_t *child_giface =
avro_generic_class_from_schema_memoized(child_schema, state);
if (child_giface == NULL) {