diff options
author | Christian Hesse <mail@eworm.de> | 2021-09-09 09:04:41 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-10 08:58:58 +0200 |
commit | 589b0733d993ec7eaa44096de953b172f8b0d573 (patch) | |
tree | 81928b2c40e7b76e7f592c24fa3f43a55d045a74 /Settings.c | |
parent | c9b58c7fbe589d3976aee6e18eab7ae903aa253b (diff) |
Settings: set ok when reading configuration from sysconfdir
Without this htoprc from sysconfdir is ignored and default meters
are loaded.
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |