From: Vinson Lee Date: Tue, 10 Sep 2013 03:45:28 +0000 (-0700) Subject: glsl: Initialize builtin_builder member variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=118cdd1d3f572ac06bb3570fd987a6528ed34a09;p=mesa.git glsl: Initialize builtin_builder member variables. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- 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; }