From ec87cb7ca11b60eff74e46a7f55aad7afbcc718f Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Thu, 19 Apr 2018 18:57:46 +0930 Subject: [PATCH] fixing index out of range error --- RevidCLI.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RevidCLI.go b/RevidCLI.go index 3677c57f..ba3aa249 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -118,7 +118,7 @@ func main() { } // Create the configFlags based on the flagNames array - var configFlags [noOfConfigconfigFlags](*string) + configFlags := makie(*string,noOfConfigconfigFlags) for i := 0; i < 20; i++ { configFlags[i] = flag.String(flagNames[i][0], "", flagNames[i][1]) }