glsl: Initialize per_vertex_accumulator::fields.
authorVinson Lee <vlee@freedesktop.org>
Sat, 12 Oct 2013 06:14:47 +0000 (23:14 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 19 Oct 2013 01:29:18 +0000 (18:29 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/builtin_variables.cpp

index f06d2ab05fdd1c5cbe301680c82577bb0e67b264..64f34061a0fc06b08a391e169f0c6dc106bc649a 100644 (file)
@@ -311,7 +311,8 @@ private:
 
 
 per_vertex_accumulator::per_vertex_accumulator()
-   : num_fields(0)
+   : fields(),
+     num_fields(0)
 {
 }