From 6fd752f7e7b727b643e1440de8181069be22ec6e Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Mon, 20 Apr 2026 08:07:25 +0300 Subject: [PATCH] cmd/loop: fix panic on zero index in instantout reservation selection --- cmd/loop/instantout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/loop/instantout.go b/cmd/loop/instantout.go index 59647c7b..9783f005 100644 --- a/cmd/loop/instantout.go +++ b/cmd/loop/instantout.go @@ -137,7 +137,7 @@ func instantOut(ctx context.Context, cmd *cli.Command) error { if err != nil { return err } - if idx < 0 { + if idx <= 0 { return fmt.Errorf("invalid index %v", idx) }