glsl: init non-static class member in link uniforms. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 17 May 2019 01:25:48 +0000 (11:25 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 May 2019 02:33:09 +0000 (12:33 +1000)
link_uniforms.cpp:477: uninit_member: Non-static class member "shader_storage_blocks_write_access" is not initialized in this constructor nor in any functions that it calls.

Reported by coverity.

v2: fix 9->0 typo (Ilia)

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/link_uniforms.cpp

index aa96227a7e1a3d5043f99c29dcf155bba39194c8..d588f3fc190fe55e9dfea4356951843b89e9a2e4 100644 (file)
@@ -472,7 +472,8 @@ public:
                               bool use_std430_as_default)
       : prog(prog), map(map), uniforms(uniforms),
         use_std430_as_default(use_std430_as_default), values(values),
-        bindless_targets(NULL), bindless_access(NULL)
+        bindless_targets(NULL), bindless_access(NULL),
+        shader_storage_blocks_write_access(0)
    {
    }