summaryrefslogtreecommitdiffstats
path: root/devices/temp_freebsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'devices/temp_freebsd.go')
-rw-r--r--devices/temp_freebsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/temp_freebsd.go b/devices/temp_freebsd.go
index 54355fc..0916122 100644
--- a/devices/temp_freebsd.go
+++ b/devices/temp_freebsd.go
@@ -20,7 +20,7 @@ var sensorOIDS = map[string]string{
}
func update(temps map[string]int) map[string]error {
- var errors map[string]error
+ errors := make(map[string]error)
for k, v := range sensorOIDS {
output, err := exec.Command("sysctl", "-n", k).Output()