From 589b0733d993ec7eaa44096de953b172f8b0d573 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 9 Sep 2021 09:04:41 +0200 Subject: [PATCH] Settings: set ok when reading configuration from sysconfdir Without this htoprc from sysconfdir is ignored and default meters are loaded. --- Settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Settings.c b/Settings.c index 198f1f54..5ca998ad 100644 --- a/Settings.c +++ b/Settings.c @@ -542,7 +542,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns) } if (!ok) { this->changed = true; - Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount); + ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount); } if (!ok) { Settings_defaultMeters(this, initialCpuCount);