fixing index out of range error

This commit is contained in:
Saxon1 2018-04-19 18:57:46 +09:30
parent 7201f52ac1
commit ec87cb7ca1
1 changed files with 1 additions and 1 deletions

View File

@ -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])
}