Lib: initialize fields in constructor

fixes CID 27975,27996,28026 found by Coverity
This commit is contained in:
Christian Beer 2015-11-05 16:43:19 +01:00
parent dee784fd15
commit 7be9ff730a
1 changed files with 4 additions and 0 deletions

View File

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