From: Marek Olšák Date: Mon, 11 Jul 2011 02:13:35 +0000 (+0200) Subject: r600g: more valgrind fixes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc9d789d1b39f9702c179a1d60f76535352563df;p=mesa.git r600g: more valgrind fixes --- diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c index fa2d77ed464..b5a4d928bf5 100644 --- a/src/gallium/winsys/r600/drm/r600_drm.c +++ b/src/gallium/winsys/r600/drm/r600_drm.c @@ -209,7 +209,7 @@ static int radeon_drm_get_tiling(struct radeon *radeon) static int radeon_get_clock_crystal_freq(struct radeon *radeon) { struct drm_radeon_info info = {}; - uint32_t clock_crystal_freq; + uint32_t clock_crystal_freq = 0; int r; info.request = RADEON_INFO_CLOCK_CRYSTAL_FREQ; @@ -227,7 +227,7 @@ static int radeon_get_clock_crystal_freq(struct radeon *radeon) static int radeon_get_num_backends(struct radeon *radeon) { struct drm_radeon_info info = {}; - uint32_t num_backends; + uint32_t num_backends = 0; int r; info.request = RADEON_INFO_NUM_BACKENDS;