trace: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Wed, 23 Dec 2009 01:34:39 +0000 (17:34 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 23 Dec 2009 01:34:39 +0000 (17:34 -0800)
src/gallium/drivers/trace/tr_rbug.c

index 1dd9900be0f8b19d01005ea66271e5d0b0fd0f16..0372d92782bb6351310628f37382ee20b332bfc3 100644 (file)
@@ -179,7 +179,7 @@ static int
 trace_rbug_texture_info(struct trace_rbug *tr_rbug, struct rbug_header *header, uint32_t serial)
 {
    struct trace_screen *tr_scr = tr_rbug->tr_scr;
-   struct trace_texture *tr_tex;
+   struct trace_texture *tr_tex = NULL;
    struct rbug_proto_texture_info *gpti = (struct rbug_proto_texture_info *)header;
    struct tr_list *ptr;
    struct pipe_texture *t;
@@ -220,7 +220,7 @@ trace_rbug_texture_read(struct trace_rbug *tr_rbug, struct rbug_header *header,
    struct rbug_proto_texture_read *gptr = (struct rbug_proto_texture_read *)header;
 
    struct trace_screen *tr_scr = tr_rbug->tr_scr;
-   struct trace_texture *tr_tex;
+   struct trace_texture *tr_tex = NULL;
    struct tr_list *ptr;
 
    struct pipe_screen *screen = tr_scr->screen;