fix nil map
This commit is contained in:
parent
fcb2552e73
commit
7b77ef35af
@ -48,6 +48,9 @@ func NewConfig() *Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if unicode.IsLetter(getFirstRune(key)) {
|
if unicode.IsLetter(getFirstRune(key)) {
|
||||||
|
if len(config.mapEnv[left]) == 0 {
|
||||||
|
config.mapEnv[left] = make(map[string]cEntry)
|
||||||
|
}
|
||||||
var entry cEntry
|
var entry cEntry
|
||||||
entry.value = splitted[1]
|
entry.value = splitted[1]
|
||||||
entry.dtype = TypeNone
|
entry.dtype = TypeNone
|
||||||
|
Loading…
Reference in New Issue
Block a user