mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
fix: Fix Potential Index Out of Bound (#409)
This commit is contained in:
parent
0664e9fc47
commit
326a8c8984
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ func hash(ctx *cli.Context) {
|
||||||
}
|
}
|
||||||
f, err := os.Open(args[0])
|
f, err := os.Open(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Fatalf("Error opening file " + args[1])
|
utils.Fatalf("Error opening file " + args[0])
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue