diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-27 16:13:41 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-27 16:13:41 +1000 |
commit | bdbabcd1e4257fd7de119617609f978d2dd7dd35 (patch) | |
tree | 22397c0584bd626765c2d20d1c15c4cbf3b5ee31 /src/gallium/winsys/drm/radeon/core/radeon_drm.c | |
parent | 9ee5b78e7fb31c04a4f5ed96c202604832cc90dd (diff) |
r300g: fix use of uninitialised variables.
These buffers were getting dereferenced later.
Diffstat (limited to 'src/gallium/winsys/drm/radeon/core/radeon_drm.c')
-rw-r--r-- | src/gallium/winsys/drm/radeon/core/radeon_drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm.c b/src/gallium/winsys/drm/radeon/core/radeon_drm.c index dec7c06503..05194fc52a 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_drm.c +++ b/src/gallium/winsys/drm/radeon/core/radeon_drm.c @@ -206,7 +206,7 @@ static boolean radeon_shared_handle_from_texture(struct drm_api *api, int retval, fd; struct drm_gem_flink flink; struct radeon_pipe_buffer* radeon_buffer; - struct pipe_buffer *buffer; + struct pipe_buffer *buffer = NULL; if (!radeon_buffer_from_texture(api, texture, &buffer, stride)) { return FALSE; @@ -239,7 +239,7 @@ static boolean radeon_local_handle_from_texture(struct drm_api *api, unsigned *stride, unsigned *handle) { - struct pipe_buffer *buffer; + struct pipe_buffer *buffer = NULL; if (!radeon_buffer_from_texture(api, texture, &buffer, stride)) { return FALSE; } |