diff --git a/command/server/config.go b/command/server/config.go index 433d590bb..df6938755 100644 --- a/command/server/config.go +++ b/command/server/config.go @@ -526,8 +526,8 @@ func ParseConfig(d, source string) (*Config, error) { result.UnusedKeys = configutil.UnusedFieldDifference(result.UnusedKeys, nil, append(result.FoundKeys, sharedConfig.FoundKeys...)) // Assign file info for _, v := range result.UnusedKeys { - for _, p := range v { - p.Filename = source + for i := range v { + v[i].Filename = source } }