diff --git a/engine/storage_sql.go b/engine/storage_sql.go index 7b8c29b80..292da8893 100644 --- a/engine/storage_sql.go +++ b/engine/storage_sql.go @@ -993,7 +993,7 @@ func (self *SQLStorage) RemStoredCdrs(cgrIds []string) error { } func (self *SQLStorage) GetTpDestinations(tpid, tag string) (map[string]*Destination, error) { - var dests map[string]*Destination + dests := make(map[string]*Destination) q := fmt.Sprintf("SELECT * FROM %s WHERE tpid='%s'", utils.TBL_TP_DESTINATIONS, tpid) if len(tag) != 0 { q += fmt.Sprintf(" AND id='%s'", tag)