nvfx: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Sun, 11 Apr 2010 03:28:24 +0000 (20:28 -0700)
committerVinson Lee <vlee@vmware.com>
Sun, 11 Apr 2010 03:28:24 +0000 (20:28 -0700)
src/gallium/drivers/nvfx/nvfx_draw.c

index fc6f8d02721fe9cf886466d95ed52b8115ad93e2..1d791c155bb1d38bbee258042ee9a1b1b63f17f7 100644 (file)
@@ -239,8 +239,8 @@ nvfx_draw_elements_swtnl(struct pipe_context *pipe,
 {
        struct nvfx_context *nvfx = nvfx_context(pipe);
        struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS];
-       struct pipe_transfer *ib_transfer;
-       struct pipe_transfer *cb_transfer;
+       struct pipe_transfer *ib_transfer = NULL;
+       struct pipe_transfer *cb_transfer = NULL;
        unsigned i;
        void *map;