diff --git a/prog.go b/prog.go index 776799e3b..983044c0c 100644 --- a/prog.go +++ b/prog.go @@ -692,6 +692,10 @@ func (p *Program) Test(in []byte) (uint32, []byte, error) { // // Note: the same restrictions from Test apply. func (p *Program) Run(opts *RunOptions) (uint32, error) { + if opts == nil { + opts = &RunOptions{} + } + ret, _, err := p.run(opts) if err != nil { return ret, fmt.Errorf("run program: %w", err)