initialize offset to avoid bogus warnings from valgrind
authorTilman Sauerbeck <tilman@freedesktop.org>
Sat, 1 Jul 2006 21:27:34 +0000 (21:27 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Sat, 1 Jul 2006 21:27:34 +0000 (21:27 +0000)
src/mesa/drivers/dri/r300/radeon_mm.c

index ce3c5e4b9abbe733af7089f110dd00a800a2c99f..2be3a1955ab0632642774075183d05bcde735146 100644 (file)
@@ -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;