Fix a bug in config.LookupStringMap.

configurable-file-paths
Robert Gerus 2015-11-18 16:23:34 +01:00
parent 279be22965
commit aed3f49e41
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ func LookupStringSlice(context map[string]string, key string) (retval []string)
// map[string]bool for optimised lookups.
func LookupStringMap(context map[string]string, key string) (retval map[string]bool) {
var value interface{}
retval = make(map[string]bool)
c.l.Lock()
defer c.l.Unlock()