mirror of https://github.com/BOINC/boinc.git
Lib: initialize fields in constructor
fixes CID 28014 found by Coverity
This commit is contained in:
parent
f33c4ed1d6
commit
9fff30a9b5
|
@ -39,7 +39,10 @@ struct PROCINFO {
|
|||
double page_fault_rate; // derived by higher-level code
|
||||
std::vector<int> children;
|
||||
|
||||
PROCINFO(){}
|
||||
PROCINFO() {
|
||||
clear();
|
||||
working_set_size_smoothed = 0;
|
||||
}
|
||||
void clear() {
|
||||
id = 0;
|
||||
parentid = 0;
|
||||
|
|
Loading…
Reference in New Issue