From a850d81bf507b7a3281c89f503ee8e7963f6772f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 28 Aug 2020 15:31:16 +0200 Subject: Avoid use of uninitialized variables Found by Coverity --- linux/LinuxProcessList.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 27ddf79d..afdbc5fd 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -1062,9 +1062,9 @@ static inline void LinuxProcessList_scanMemoryInfo(ProcessList* this) { } static inline void LinuxProcessList_scanZfsArcstats(LinuxProcessList* lpl) { - unsigned long long int dbufSize; - unsigned long long int dnodeSize; - unsigned long long int bonusSize; + unsigned long long int dbufSize = 0; + unsigned long long int dnodeSize = 0; + unsigned long long int bonusSize = 0; FILE* file = fopen(PROCARCSTATSFILE, "r"); if (file == NULL) { -- cgit v1.2.3