mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-20 08:45:45 +03:00
Avoid use of uninitialized variables
Found by Coverity
This commit is contained in:
parent
05a5fdc47f
commit
a850d81bf5
@ -1062,9 +1062,9 @@ static inline void LinuxProcessList_scanMemoryInfo(ProcessList* this) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline void LinuxProcessList_scanZfsArcstats(LinuxProcessList* lpl) {
|
static inline void LinuxProcessList_scanZfsArcstats(LinuxProcessList* lpl) {
|
||||||
unsigned long long int dbufSize;
|
unsigned long long int dbufSize = 0;
|
||||||
unsigned long long int dnodeSize;
|
unsigned long long int dnodeSize = 0;
|
||||||
unsigned long long int bonusSize;
|
unsigned long long int bonusSize = 0;
|
||||||
|
|
||||||
FILE* file = fopen(PROCARCSTATSFILE, "r");
|
FILE* file = fopen(PROCARCSTATSFILE, "r");
|
||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user