Mesa (master): glsl: Initialize current_var

Matt Turner mattst88 at kemper.freedesktop.org
Tue Apr 25 22:28:43 UTC 2017


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Apr 25 10:12:03 2017 -0700

glsl: Initialize current_var

CID: 1324644 (Uninitialized pointer field)

---

 src/compiler/glsl/link_uniforms.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp
index b462cb9d59..f1e0885fbd 100644
--- a/src/compiler/glsl/link_uniforms.cpp
+++ b/src/compiler/glsl/link_uniforms.cpp
@@ -258,7 +258,7 @@ public:
         num_shader_samplers(0), num_shader_images(0),
         num_shader_uniform_components(0), num_shader_subroutines(0),
         is_buffer_block(false), is_shader_storage(false), map(map),
-        hidden_map(hidden_map)
+        hidden_map(hidden_map), current_var(NULL)
    {
       /* empty */
    }




More information about the mesa-commit mailing list