Module: Mesa
Branch: master
Commit: 4654650d6b56db2d2ebdaac4ac72d9da84159335
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4654650d6b56db2d2ebdaac4ac72d9da84159335

Author: Vinson Lee <[email protected]>
Date:   Mon Oct 19 16:23:45 2020 -0700

nv50/ir: Initialize BindArgumentsPass member sub in constructor.

Fix defect reported by Coverity.

Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member sub is not initialized in
this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7229>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp 
b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index 19f070f44bb..8eb710446ce 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -1692,7 +1692,7 @@ private:
 
    class BindArgumentsPass : public Pass {
    public:
-      BindArgumentsPass(Converter &conv) : conv(conv) { }
+      BindArgumentsPass(Converter &conv) : conv(conv), sub(NULL) { }
 
    private:
       Converter &conv;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to