From 5353ad2f715122b09c24c2e8d0343132750cfae2 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 3 Jul 2018 09:55:07 +0200 Subject: [PATCH] Fix: Do not marshal into pointer of pointer Signed-off-by: Knut Ahlers --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 6b721bd..0f82fc1 100644 --- a/config.go +++ b/config.go @@ -32,5 +32,5 @@ func loadConfig() (*configFile, error) { defer dataFile.Close() c := &configFile{} - return c, yaml.NewDecoder(dataFile).Decode(&c) + return c, yaml.NewDecoder(dataFile).Decode(c) }