Skip to content

Commit

Permalink
fix: potential IOB.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Sep 18, 2023
1 parent 92a6f28 commit ff32dda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build-windows/kcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ func main() {
args = append(args, "version")
} else {
args = append(args, "run")
args = append(args, os.Args[1:]...)
if len(os.Args) >= 1 {
args = append(args, os.Args[1:]...)
}
}

os.Exit(KclvmCliMain(args))
Expand Down

0 comments on commit ff32dda

Please sign in to comment.