summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-10-11 23:14:47 -0700
committerVinson Lee <vlee@freedesktop.org>2013-10-18 18:29:18 -0700
commit37cd9ac6dfcff10ab7b08c4f3b17a2cfe3a6d7e7 (patch)
treeba1740978d2edb01740ade794b0ee921456af079 /src/glsl
parent136a12ac98868d82c2ae9fcc80d11044a7ec56d1 (diff)
glsl: Initialize per_vertex_accumulator::fields.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/builtin_variables.cpp3
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)
{
}