[Mesa-dev] [PATCH] r600g/sb: Initialize cf_node::bc.
Vinson Lee
vlee at freedesktop.org
Sun Aug 18 14:35:46 PDT 2013
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/gallium/drivers/r600/sb/sb_ir.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/r600/sb/sb_ir.h b/src/gallium/drivers/r600/sb/sb_ir.h
index c838f62..b696e77 100644
--- a/src/gallium/drivers/r600/sb/sb_ir.h
+++ b/src/gallium/drivers/r600/sb/sb_ir.h
@@ -962,8 +962,8 @@ public:
class cf_node : public container_node {
protected:
- cf_node() : container_node(NT_OP, NST_CF_INST), jump_target(),
- jump_after_target() {};
+ cf_node() : container_node(NT_OP, NST_CF_INST), bc(),
+ jump_target(), jump_after_target() {};
public:
bc_cf bc;
--
1.8.3.1
More information about the mesa-dev
mailing list