~adnano/kiln

2da77c0b807244322c4e304b465c7b218d40c150 — Adnan Maolood a month ago 26983cf
config: Fix crash caused by nil map
1 files changed, 3 insertions(+), 0 deletions(-)

M config.go
M config.go => config.go +3 -0
@@ 38,6 38,9 @@ func (t Task) Format(p *Page) (string, []byte) {
// LoadConfig loads the configuration from the provided path.
func LoadConfig(path string) (*Config, error) {
	c := new(Config)
	c.Feeds = make(map[string]string)
	c.Tasks = make(map[string]*Task)

	f, err := os.Open(path)
	if err != nil {
		return nil, err