This is an automated email from the ASF dual-hosted git repository.

martin-g pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.12 by this push:
     new ce19875985 Fix wrong schema accessor in avro_generic_map_class (#3823)
ce19875985 is described below

commit ce1987598581422b357f34e4c15c5da3941026b9
Author: KyleKim107 <[email protected]>
AuthorDate: Fri Jun 19 02:58:41 2026 -0500

    Fix wrong schema accessor in avro_generic_map_class (#3823)
    
    (cherry picked from commit d85a45b4f53c3b74e6dab3ba9be48932e301b50b)
---
 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) {

Reply via email to