# HG changeset patch # User Ollivier Robert # Date 1491850545 -7200 # Node ID 4a0533d00053610b7494abeb1baf0fe55be71831 # Parent 80a09cf622257b9591d736d9bee7e77785d2eafe Allocate stuff the same way everywhere. diff -r 80a09cf62225 -r 4a0533d00053 config.go --- a/config.go Mon Apr 10 20:47:08 2017 +0200 +++ b/config.go Mon Apr 10 20:55:45 2017 +0200 @@ -80,8 +80,7 @@ return s, fmt.Errorf("Can not read %s", file) } - var sc Server - + sc := Server{} err = toml.Unmarshal(buf, &sc) if err != nil { return s, fmt.Errorf("Error parsing toml %s: %v", file, err)