mirror of https://github.com/BOINC/boinc.git
Lib: initialize fields in constructor
fixes CID 27975,27996,28026 found by Coverity
This commit is contained in:
parent
dee784fd15
commit
7be9ff730a
|
@ -403,6 +403,7 @@ void COPROC_NVIDIA::clear() {
|
||||||
prop.textureAlignment = 0;
|
prop.textureAlignment = 0;
|
||||||
prop.deviceOverlap = 0;
|
prop.deviceOverlap = 0;
|
||||||
prop.multiProcessorCount = 0;
|
prop.multiProcessorCount = 0;
|
||||||
|
is_used = COPROC_UNUSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
int COPROC_NVIDIA::parse(XML_PARSER& xp) {
|
int COPROC_NVIDIA::parse(XML_PARSER& xp) {
|
||||||
|
@ -655,6 +656,7 @@ void COPROC_ATI::clear() {
|
||||||
memset(&attribs, 0, sizeof(attribs));
|
memset(&attribs, 0, sizeof(attribs));
|
||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
version_num = 0;
|
version_num = 0;
|
||||||
|
is_used = COPROC_UNUSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
int COPROC_ATI::parse(XML_PARSER& xp) {
|
int COPROC_ATI::parse(XML_PARSER& xp) {
|
||||||
|
@ -842,6 +844,8 @@ void COPROC_INTEL::clear() {
|
||||||
estimated_delay = -1;
|
estimated_delay = -1;
|
||||||
strcpy(name, "");
|
strcpy(name, "");
|
||||||
strcpy(version, "");
|
strcpy(version, "");
|
||||||
|
global_mem_size = 0;
|
||||||
|
is_used = COPROC_UNUSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
int COPROC_INTEL::parse(XML_PARSER& xp) {
|
int COPROC_INTEL::parse(XML_PARSER& xp) {
|
||||||
|
|
Loading…
Reference in New Issue