From f86ab095804438fde5fd7de51e32aa592a4f2adb Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 30 Jul 2014 19:23:28 +0300 Subject: [PATCH] initialize dests map --- engine/storage_sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)