diff options
author | Vinson Lee <[email protected]> | 2013-10-11 23:14:47 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-10-18 18:29:18 -0700 |
commit | 37cd9ac6dfcff10ab7b08c4f3b17a2cfe3a6d7e7 (patch) | |
tree | ba1740978d2edb01740ade794b0ee921456af079 /src/glsl/builtin_variables.cpp | |
parent | 136a12ac98868d82c2ae9fcc80d11044a7ec56d1 (diff) |
glsl: Initialize per_vertex_accumulator::fields.
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/builtin_variables.cpp')
-rw-r--r-- | src/glsl/builtin_variables.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index f06d2ab05fd..64f34061a0f 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -311,7 +311,8 @@ private: per_vertex_accumulator::per_vertex_accumulator() - : num_fields(0) + : fields(), + num_fields(0) { } |