Lib: initialize fields in constructor

fixes CID 28014 found by Coverity
This commit is contained in:
Christian Beer 2015-11-04 08:35:49 +01:00
parent f33c4ed1d6
commit 9fff30a9b5
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ struct PROCINFO {
double page_fault_rate; // derived by higher-level code double page_fault_rate; // derived by higher-level code
std::vector<int> children; std::vector<int> children;
PROCINFO(){} PROCINFO() {
clear();
working_set_size_smoothed = 0;
}
void clear() { void clear() {
id = 0; id = 0;
parentid = 0; parentid = 0;