[tor-commits] [goptlib/master] Fix stringSetsEqual.

dcf at torproject.org dcf at torproject.org
Thu Nov 14 07:00:22 UTC 2013


commit 3c87b69d5af9943741a0fed8b9595fc20646c06d
Author: David Fifield <david at bamsoftware.com>
Date:   Wed Nov 13 00:56:31 2013 -0800

    Fix stringSetsEqual.
---
 pt_test.go |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/pt_test.go b/pt_test.go
index e06b24f..86a38dc 100644
--- a/pt_test.go
+++ b/pt_test.go
@@ -90,6 +90,8 @@ func TestGetManagedTransportVer(t *testing.T) {
 func stringSetsEqual(a, b []string) bool {
 	ac := make([]string, len(a))
 	bc := make([]string, len(b))
+	copy(ac, a)
+	copy(bc, b)
 	sort.Strings(ac)
 	sort.Strings(bc)
 	if len(ac) != len(bc) {





More information about the tor-commits mailing list