From 7047429ef89eab132280b4523841cc159c2d2a0c Mon Sep 17 00:00:00 2001 From: John Beisley Date: Sun, 6 Oct 2013 16:53:53 +0100 Subject: [PATCH] Fix bug in visiting services. --- device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.go b/device.go index d41ef21..71e0953 100644 --- a/device.go +++ b/device.go @@ -74,7 +74,7 @@ func (device *Device) VisitDevices(visitor func(*Device)) { // descendent devices. func (device *Device) VisitServices(visitor func(*Service)) { device.VisitDevices(func(d *Device) { - for i := range device.Services { + for i := range d.Services { visitor(&d.Services[i]) } })