From 43cf3542ac06d5c09ea28633ceb2b9868a27805d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 6 May 2021 21:46:35 +0300 Subject: [PATCH] tools: fix a cmd/tools/repeat.v segfault --- cmd/tools/repeat.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/repeat.v b/cmd/tools/repeat.v index b51dd6a1ca..f61e829d70 100644 --- a/cmd/tools/repeat.v +++ b/cmd/tools/repeat.v @@ -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]