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 3547cad6aebbb5330c8114990f210a5734ab9aa5..78ba10c31c5fd7b1f0d01d4050f8b5b5167a7497 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;