r600g: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Wed, 15 Sep 2010 12:31:31 +0000 (05:31 -0700)
committerVinson Lee <vlee@vmware.com>
Wed, 15 Sep 2010 12:31:31 +0000 (05:31 -0700)
src/gallium/drivers/r600/r600_asm.c

index 9e5406f45e1be8e3992d800423840532b0b859bf..662b9b9115d015b76f7d9ce88491b7baa1d9260a 100644 (file)
@@ -384,7 +384,7 @@ static int check_vector(struct r600_bc *bc, struct r600_bc_alu *alu)
 
 static int check_and_set_bank_swizzle(struct r600_bc *bc, struct r600_bc_alu *alu_first)
 {
-       struct r600_bc_alu *alu;
+       struct r600_bc_alu *alu = NULL;
        int num_instr = 1;
 
        init_gpr(alu_first);