r300/compiler: fix a warning that a variable may be uninitialized
authorMarek Olšák <maraeo@gmail.com>
Fri, 15 Jul 2011 18:25:38 +0000 (20:25 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 15 Jul 2011 19:48:28 +0000 (21:48 +0200)
src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c

index b0deb751be04f6ef3f04a65cbc2a87c82ef8c887..a8decacedaf0b8c92d7bfe91fe73000255cf4ae1 100644 (file)
@@ -687,7 +687,7 @@ static void get_readers_for_single_write(
        struct rc_instruction * tmp;
        unsigned int branch_depth = 0;
        struct rc_instruction * endloop = NULL;
-       unsigned int abort_on_read_at_endloop;
+       unsigned int abort_on_read_at_endloop = 0;
        struct get_readers_callback_data * d = userdata;
 
        d->ReaderData->Writer = writer;