diff --git a/viper.go b/viper.go index b23d837..e099839 100644 --- a/viper.go +++ b/viper.go @@ -677,6 +677,8 @@ func (v *Viper) ReadInConfig() error { return err } + v.config = make(map[string]interface{}) + v.marshalReader(bytes.NewReader(file), v.config) return nil }