From: Tim Wiederhake Date: Mon, 24 Jan 2011 15:59:14 +0000 (+0100) Subject: silences some valgrind warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d41e5ee46d73d4bff0ab78a5d24ec619a0ef894;p=mesa.git silences some valgrind warnings ==5547== Conditional jump or move depends on uninitialised value(s) ==5547== at 0x8FE745D: r600_drm_winsys_create (r600_drm.c:86) --- diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c index 69b0a1dcd72..6fc147fb6f4 100644 --- a/src/gallium/winsys/r600/drm/r600_drm.c +++ b/src/gallium/winsys/r600/drm/r600_drm.c @@ -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;