From 24659c84ab27ad19d95f0c64dcc9568f2bbb4b66 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 8 Sep 2023 08:43:57 -0400 Subject: cooker: set base_offset for struct --- cooker/call.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cooker/call.c') diff --git a/cooker/call.c b/cooker/call.c index 5544ea7..bb53829 100644 --- a/cooker/call.c +++ b/cooker/call.c @@ -255,6 +255,8 @@ static union value parse_field(struct gluten_ctx *g, struct arg *args, continue; parse_field(g, args, &struct_start, index, f_inner, f_value, false, add); + if (base_offset->type == OFFSET_NULL) + *base_offset = struct_start; } break; default: -- cgit v1.2.3