silences some valgrind warnings
authorTim Wiederhake <twied@gmx.net>
Mon, 24 Jan 2011 15:59:14 +0000 (16:59 +0100)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 25 Jan 2011 19:18:19 +0000 (14:18 -0500)
==5547== Conditional jump or move depends on uninitialised value(s)
==5547==    at 0x8FE745D: r600_drm_winsys_create (r600_drm.c:86)

src/gallium/winsys/r600/drm/r600_drm.c

index 69b0a1dcd720ac05f0e0b8c6dbe9f4afcf143bcf..6fc147fb6f4092c74a8ee2be6103079cd9aa1d1f 100644 (file)
@@ -73,7 +73,7 @@ static int radeon_drm_get_tiling(struct radeon *radeon)
 {
        struct drm_radeon_info info;
        int r;
-       uint32_t tiling_config;
+       uint32_t tiling_config = 0;
 
        info.request = RADEON_INFO_TILING_CONFIG;
        info.value = (uintptr_t)&tiling_config;