From 37cd9ac6dfcff10ab7b08c4f3b17a2cfe3a6d7e7 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 11 Oct 2013 23:14:47 -0700 Subject: [PATCH] glsl: Initialize per_vertex_accumulator::fields. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Paul Berry --- src/glsl/builtin_variables.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { } -- 2.30.2