Set DefinedDefault empty to false

This commit is contained in:
Roy Olav Purser 2021-03-25 09:22:09 +01:00
parent b1394b76a5
commit d549c57176
No known key found for this signature in database
GPG Key ID: 0BA77797F072BC52

View File

@ -60,11 +60,11 @@ func (c *Config) DefineDefault(key string, val string, dtype DataType) {
entry, ok := c.env[upper] entry, ok := c.env[upper]
if ok { if ok {
if entry.unset { if entry.unset {
entry.empty = false
entry.value = val entry.value = val
entry.dtype = dtype
c.env[upper] = entry
} }
entry.dtype = dtype
entry.empty = false
c.env[upper] = entry
} else { } else {
var entry cEntry var entry cEntry
entry.dtype = dtype entry.dtype = dtype