glsl: Initialize ir_texture member variable.
authorVinson Lee <vlee@freedesktop.org>
Tue, 12 Feb 2013 06:35:01 +0000 (22:35 -0800)
committerVinson Lee <vlee@freedesktop.org>
Thu, 14 Feb 2013 07:10:48 +0000 (23:10 -0800)
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/ir.h

index efd80dad894bd36d553debaeecd679a4b84aca87..1e09988e5fe04f24ce52f1e20ebc0b4307df1398 100644 (file)
@@ -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;
    }