mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
93409a784d
Before this change MacroOp.Record simply reserved enough space for Stop to fill out. If a user Record but never Stop'ed a MacroOp, the resulting Ops buffer would end up with a zero, invalid opcode and panic at decode. Fill out an empty MacroOp at Record, ensuring the Ops remains valid. Signed-off-by: Elias Naur <mail@eliasnaur.com>