Mesa (master): r600g: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Fri Oct 8 21:09:39 UTC 2010


Module: Mesa
Branch: master
Commit: 131485efae3e919c2ba619eb087931f402c219f1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=131485efae3e919c2ba619eb087931f402c219f1

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Oct  8 14:08:50 2010 -0700

r600g: Silence uninitialized variable warning.

---

 src/gallium/winsys/r600/drm/r600_hw_context.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index 86bddcc..fa00537 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -67,7 +67,8 @@ static void INLINE r600_context_update_fenced_list(struct r600_context *ctx)
 
 static void INLINE r600_context_fence_wraparound(struct r600_context *ctx, unsigned fence)
 {
-	struct radeon_bo *bo, *tmp;
+	struct radeon_bo *bo = NULL;
+	struct radeon_bo *tmp;
 
 	LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &ctx->fenced_bo, fencedlist) {
 		if (bo->fence <= *ctx->cfence) {




More information about the mesa-commit mailing list