tools: fix a cmd/tools/repeat.v segfault

pull/10029/head
Delyan Angelov 2021-05-06 21:46:35 +03:00
parent ea74e2bc64
commit 43cf3542ac
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 1 deletions

View File

@ -287,7 +287,8 @@ fn (mut context Context) run() {
context.clear_line()
print(context.cgoback)
mut m := map[string][]int{}
for o in context.results[icmd].outputs {
ioutputs := context.results[icmd].outputs
for o in ioutputs {
x := o.split(':')
if x.len > 1 {
k := x[0]