fix nil slice
This commit is contained in:
parent
d1bcc8c4cc
commit
1803501272
@ -283,6 +283,7 @@ func keySplit(key string) (left string, right string, ok bool) {
|
|||||||
|
|
||||||
func (c *Config) getRaw(key string, dtype DataType) (val cValue) {
|
func (c *Config) getRaw(key string, dtype DataType) (val cValue) {
|
||||||
val.dtype = TypeNone
|
val.dtype = TypeNone
|
||||||
|
val.binval = make([]byte, 0, 0)
|
||||||
if c.parsed {
|
if c.parsed {
|
||||||
key = cleanKey(key)
|
key = cleanKey(key)
|
||||||
entry, ok := c.env[key]
|
entry, ok := c.env[key]
|
||||||
|
Loading…
Reference in New Issue
Block a user