1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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]