initialize dests map

This commit is contained in:
Radu Ioan Fericean
2014-07-30 19:23:28 +03:00
parent 2250d9a2cc
commit f86ab09580

View File

@@ -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)