generated from OBJNULL/Dockerized-Rust
Fixed catch to not exceed vector size
This commit is contained in:
parent
432cd5f695
commit
8e0e4750e5
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ impl Arguments {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is there something else after this?
|
// Is there something else after this?
|
||||||
if i + 1 > args.len() {
|
if i + 1 > args.len() - 1 {
|
||||||
result.push(Argument {
|
result.push(Argument {
|
||||||
key: args[i].clone(),
|
key: args[i].clone(),
|
||||||
val: String::new(),
|
val: String::new(),
|
||||||
|
|
Loading…
Reference in a new issue