From 7be9ff730a8542ba007bc41ea6763d050d3c0110 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Thu, 5 Nov 2015 16:43:19 +0100 Subject: [PATCH] Lib: initialize fields in constructor fixes CID 27975,27996,28026 found by Coverity --- lib/coproc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 352029b8b5..2d69abe45a 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -403,6 +403,7 @@ void COPROC_NVIDIA::clear() { prop.textureAlignment = 0; prop.deviceOverlap = 0; prop.multiProcessorCount = 0; + is_used = COPROC_UNUSED; } int COPROC_NVIDIA::parse(XML_PARSER& xp) { @@ -655,6 +656,7 @@ void COPROC_ATI::clear() { memset(&attribs, 0, sizeof(attribs)); memset(&info, 0, sizeof(info)); version_num = 0; + is_used = COPROC_UNUSED; } int COPROC_ATI::parse(XML_PARSER& xp) { @@ -842,6 +844,8 @@ void COPROC_INTEL::clear() { estimated_delay = -1; strcpy(name, ""); strcpy(version, ""); + global_mem_size = 0; + is_used = COPROC_UNUSED; } int COPROC_INTEL::parse(XML_PARSER& xp) {