[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 3c87b69d5af9943741a0fed8b9595fc20646c06d
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits