diff options
Diffstat (limited to 'pkg/config/yaml.go')
-rw-r--r-- | pkg/config/yaml.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/config/yaml.go b/pkg/config/yaml.go index 53d4d98..84f4af6 100644 --- a/pkg/config/yaml.go +++ b/pkg/config/yaml.go @@ -98,6 +98,7 @@ func buildFeeds(cfg []configGroupFeed, target []string, feeds Feeds) error { return fmt.Errorf("Entry with Target %s is both a Feed and a group", target) case f.isFeed(): + feedCopy := f.Feed name := f.Feed.Name if name == "" { return fmt.Errorf("Unnamed feed") @@ -106,8 +107,8 @@ func buildFeeds(cfg []configGroupFeed, target []string, feeds Feeds) error { if _, ok := feeds[name]; ok { return fmt.Errorf("Duplicate Feed Name '%s'", name) } - f.Feed.Target = target - feeds[name] = f.Feed + feedCopy.Target = target + feeds[name] = &feedCopy case f.isGroup(): if err := buildFeeds(f.Group.Feeds, target, feeds); err != nil { |