sandbox/init: early params nil check
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
4230281194
commit
bac4e67867
@ -68,6 +68,10 @@ func Init(exit func(code int)) {
|
||||
|
||||
log.Fatalf("cannot decode init setup payload: %v", err)
|
||||
} else {
|
||||
if params.Ops == nil {
|
||||
log.Fatal("invalid setup parameters")
|
||||
}
|
||||
|
||||
fmsg.Store(params.Verbose)
|
||||
fmsg.Verbose("received setup parameters")
|
||||
if params.Verbose {
|
||||
|
Loading…
Reference in New Issue
Block a user