From: Vinson Lee Date: Tue, 12 Feb 2013 06:35:01 +0000 (-0800) Subject: glsl: Initialize ir_texture member variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d5ce524abdf7e655ed20f7f82a89c9ba4de5e09;p=mesa.git glsl: Initialize ir_texture member variable. Fixes uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/ir.h b/src/glsl/ir.h index efd80dad894..1e09988e5fe 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1448,8 +1448,8 @@ enum ir_texture_opcode { class ir_texture : public ir_rvalue { public: ir_texture(enum ir_texture_opcode op) - : op(op), coordinate(NULL), projector(NULL), shadow_comparitor(NULL), - offset(NULL) + : op(op), sampler(NULL), coordinate(NULL), projector(NULL), + shadow_comparitor(NULL), offset(NULL) { this->ir_type = ir_type_texture; }