Unmarshal should be a pointer otherwise
-- 2015/03/07 15:18:56 json: Unmarshal(nil *main.mcConfig)
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ func getMcConfig() (config *mcConfig, err error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = json.Unmarshal(configBytes, config)
|
||||
err = json.Unmarshal(configBytes, &config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user