From 527cd2544fd9f63c645802191077e84f1ff9a2ae Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 1 Jul 2006 21:27:34 +0000 Subject: [PATCH] initialize offset to avoid bogus warnings from valgrind --- src/mesa/drivers/dri/r300/radeon_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r300/radeon_mm.c b/src/mesa/drivers/dri/r300/radeon_mm.c index ce3c5e4b9ab..2be3a1955ab 100644 --- a/src/mesa/drivers/dri/r300/radeon_mm.c +++ b/src/mesa/drivers/dri/r300/radeon_mm.c @@ -105,7 +105,7 @@ int radeon_mm_find(r300ContextPtr rmesa, void *ptr) int radeon_mm_alloc(r300ContextPtr rmesa, int alignment, int size) { drm_radeon_mem_alloc_t alloc; - int offset, ret; + int offset = 0, ret; int i, free=-1; int done_age; drm_radeon_mem_free_t memfree; -- 2.30.2