Avoid use of uninitialized variables

Found by Coverity
This commit is contained in:
Christian Göttsche 2020-08-28 15:31:16 +02:00
parent 05a5fdc47f
commit a850d81bf5

View File

@ -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) {