glsl: Initialize builtin_builder member variables.
authorVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 03:45:28 +0000 (20:45 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 16:49:02 +0000 (09:49 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp

index 5d8f171b9a86188026f45ecf13c1cdeb1c1dcfe7..1fedca4cebb674287af9b5ec54381cba261c99a1 100644 (file)
@@ -525,6 +525,9 @@ private:
  *  @{
  */
 builtin_builder::builtin_builder()
+   : shader(NULL),
+     gl_ModelViewProjectionMatrix(NULL),
+     gl_Vertex(NULL)
 {
    mem_ctx = NULL;
 }