From 118cdd1d3f572ac06bb3570fd987a6528ed34a09 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 9 Sep 2013 20:45:28 -0700 Subject: [PATCH] glsl: Initialize builtin_builder member variables. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- src/glsl/builtin_functions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 5d8f171b9a8..1fedca4cebb 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -525,6 +525,9 @@ private: * @{ */ builtin_builder::builtin_builder() + : shader(NULL), + gl_ModelViewProjectionMatrix(NULL), + gl_Vertex(NULL) { mem_ctx = NULL; } -- 2.30.2