summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md8
-rw-r--r--devices/temp_freebsd.go2
2 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f6ac8f..4b7f93c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -55,7 +55,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Config file loading from `~/.config/gotop` wasn't working
- There were a number of minor issues with the config file that have been cleaned up.
-## [3.5.1] - 2020-04-09
+## [3.5.2] - 2020-04-28
+
+### Fixed
+
+- Fixes (an embarrasing) null map bug on FreeBSD (#94)
+
+## [3.5.1] - 2020-04-09
This is a bug fix release.
diff --git a/devices/temp_freebsd.go b/devices/temp_freebsd.go
index 03eb770..196a6d7 100644
--- a/devices/temp_freebsd.go
+++ b/devices/temp_freebsd.go
@@ -21,7 +21,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 {
if _, ok := temps[k]; !ok {