aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-09-08 08:43:57 -0400
committerAlice Frosi <afrosi@redhat.com>2023-09-08 08:43:57 -0400
commit24659c84ab27ad19d95f0c64dcc9568f2bbb4b66 (patch)
treeef865d861ba1d1a28d8c6bfeaa3a820ea6bed25c
parentf9efac198653634b03677ac0fccf95b376104436 (diff)
downloadseitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.tar
seitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.tar.gz
seitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.tar.bz2
seitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.tar.lz
seitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.tar.xz
seitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.tar.zst
seitan-24659c84ab27ad19d95f0c64dcc9568f2bbb4b66.zip
cooker: set base_offset for struct
-rw-r--r--cooker/call.c2
1 files changed, 2 insertions, 0 deletions
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: