[Mesa-dev] [PATCH] nvc0/ir: Initialize NVC0LegalizePostRA member variables.
Vinson Lee
vlee at freedesktop.org
Sat Jul 13 00:00:57 PDT 2013
Fixes "Uninitialized pointer field" defects reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp
index 5734eda..251e49b 100644
--- a/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp
@@ -162,7 +162,9 @@ private:
};
NVC0LegalizePostRA::NVC0LegalizePostRA(const Program *prog)
- : needTexBar(prog->getTarget()->getChipset() >= 0xe0)
+ : rZero(NULL),
+ carry(NULL),
+ needTexBar(prog->getTarget()->getChipset() >= 0xe0)
{
}
--
1.8.3.1
More information about the mesa-dev
mailing list