Skip to content

Commit d2a1aef

Browse files
committed
Fix: Fix nil pointer access
1 parent c91e309 commit d2a1aef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

alteriso5/cmd/build/work/boot/xorriso.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ type xorrisoArg struct {
1919
}
2020

2121
func (xa *xorrisoArg) add(args ...string) {
22+
if xa.args == nil {
23+
xa.args = &[]string{}
24+
}
25+
2226
arg := append(*(xa.args), args...)
2327
xa.args = &arg
2428
}

0 commit comments

Comments
 (0)