From 60717eb4ff4110f3d7acaf068249a93d8a63dbb3 Mon Sep 17 00:00:00 2001 From: alingse Date: Sun, 26 May 2024 22:46:29 +0800 Subject: [PATCH] fix: fix miss makezero bug Signed-off-by: alingse --- gopherage/cmd/merge/merge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gopherage/cmd/merge/merge.go b/gopherage/cmd/merge/merge.go index e9efaefe83e0..b823c148415f 100644 --- a/gopherage/cmd/merge/merge.go +++ b/gopherage/cmd/merge/merge.go @@ -57,7 +57,7 @@ func run(flags *flags, cmd *cobra.Command, args []string) { os.Exit(2) } - profiles := make([][]*cover.Profile, len(args)) + profiles := make([][]*cover.Profile, 0, len(args)) for _, path := range args { profile, err := util.LoadProfile(path) if err != nil {