fix nil slice

This commit is contained in:
Roy Olav Purser 2022-01-16 18:29:42 +01:00
parent d1bcc8c4cc
commit 1803501272
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -283,6 +283,7 @@ func keySplit(key string) (left string, right string, ok bool) {
func (c *Config) getRaw(key string, dtype DataType) (val cValue) {
val.dtype = TypeNone
val.binval = make([]byte, 0, 0)
if c.parsed {
key = cleanKey(key)
entry, ok := c.env[key]