summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-17 14:21:32 -0700
committerVinson Lee <vlee@vmware.com>2010-09-17 14:21:32 -0700
commitd74a8da2cbc7bde71083bb33f1c5b528a7eb6b31 (patch)
tree03035ec2a7bfbdd278f5f2b2c58fa46300fb2498
parent2da46949551ddf8489d823a7f25505b1805f7aee (diff)
r600g: Silence uninitialized variable warning.
-rw-r--r--src/gallium/winsys/r600/drm/radeon_bo_pb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/r600/drm/radeon_bo_pb.c b/src/gallium/winsys/r600/drm/radeon_bo_pb.c
index 6cc0f93033..65ba96233d 100644
--- a/src/gallium/winsys/r600/drm/radeon_bo_pb.c
+++ b/src/gallium/winsys/r600/drm/radeon_bo_pb.c
@@ -218,7 +218,8 @@ struct pb_manager *radeon_bo_pbmgr_create(struct radeon *radeon)
void radeon_bo_pbmgr_flush_maps(struct pb_manager *_mgr)
{
struct radeon_bo_pbmgr *mgr = radeon_bo_pbmgr(_mgr);
- struct radeon_bo_pb *rpb, *t_rpb;
+ struct radeon_bo_pb *rpb = NULL;
+ struct radeon_bo_pb *t_rpb;
LIST_FOR_EACH_ENTRY_SAFE(rpb, t_rpb, &mgr->buffer_map_list, maplist) {
radeon_bo_unmap(mgr->radeon, rpb->bo);