summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@freedesktop.org>2006-07-01 21:27:34 +0000
committerTilman Sauerbeck <tilman@freedesktop.org>2006-07-01 21:27:34 +0000
commit527cd2544fd9f63c645802191077e84f1ff9a2ae (patch)
tree7783d546f48f8ff9a77dea172f5faef30b6e1c13 /src/mesa/drivers/dri/r300
parentbe9282bf0b9b56c595861a9cb0e1c0d2fa0fc147 (diff)
initialize offset to avoid bogus warnings from valgrind
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_mm.c b/src/mesa/drivers/dri/r300/radeon_mm.c
index ce3c5e4b9a..2be3a1955a 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;