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

index 3547cad..78ba10c 100644 (file)
@@ -839,7 +839,7 @@ nvfx_vertprog_validate(struct nvfx_context *nvfx)
        struct nouveau_grobj *eng3d = screen->eng3d;
        struct nvfx_vertex_program *vp;
        struct pipe_resource *constbuf;
-       struct pipe_transfer *transfer;
+       struct pipe_transfer *transfer = NULL;
        boolean upload_code = FALSE, upload_data = FALSE;
        int i;