From: Marek Olšák Date: Mon, 11 Jul 2011 02:01:06 +0000 (+0200) Subject: r600g: zero memory of ioctl parameters X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daf6604435594b2ec861a40eaf4c5a23c97c0714;p=mesa.git r600g: zero memory of ioctl parameters Fixes valgrind warning. --- diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c index 4602f7f2a4b..fa2d77ed464 100644 --- a/src/gallium/winsys/r600/drm/r600_drm.c +++ b/src/gallium/winsys/r600/drm/r600_drm.c @@ -186,7 +186,7 @@ static int eg_interpret_tiling(struct radeon *radeon, uint32_t tiling_config) static int radeon_drm_get_tiling(struct radeon *radeon) { - struct drm_radeon_info info; + struct drm_radeon_info info = {}; int r; uint32_t tiling_config = 0; @@ -208,7 +208,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; + struct drm_radeon_info info = {}; uint32_t clock_crystal_freq; int r; @@ -226,7 +226,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; + struct drm_radeon_info info = {}; uint32_t num_backends; int r;