Merge pull request #1253 from otoolep/fix_config_ref

Use existing config variable, not a new one
pull/1247/head
Philip O'Toole 2014-12-19 13:11:16 -05:00
commit 3d2e57421d
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ func (l *Log) readConfig() (*Config, error) {
// Marshal file to a config type.
var config *Config
if f != nil {
config := &Config{}
config = &Config{}
if err := NewConfigDecoder(f).Decode(config); err != nil {
return nil, err
}