[Mesa-dev] [PATCH 1/4] silences some valgrind warnings
Tim Wiederhake
twied at gmx.net
Mon Jan 24 07:59:14 PST 2011
==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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c
index 69b0a1d..6fc147f 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;
--
1.7.2.3
More information about the mesa-dev
mailing list