Force initialization of the config memory

This commit is contained in:
idk
2019-05-12 21:37:26 -04:00
parent 7fe45cca93
commit 5ddea40045
2 changed files with 6 additions and 1 deletions

View File

@ -278,7 +278,9 @@ func (c *Conf) I2PINILoad(iniFile string, label ...string) error {
// NewI2PBlankTunConf returns an empty but intialized tunconf
func NewI2PBlankTunConf() *Conf {
var c Conf
c.Config = &goini.INI{}
c.Config = goini.New()
c.Config.Parse([]byte(""),"\n","=")
return &c
}