Force initialization of the config memory
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user