summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-07-11 04:01:06 +0200
committerMarek Olšák <[email protected]>2011-07-11 04:01:06 +0200
commitdaf6604435594b2ec861a40eaf4c5a23c97c0714 (patch)
treef125936d18189aabc91473175c39fe1f0d61ea5b /src/gallium/winsys
parent01f48a979d85525acd060c8055ec835a1b56ea87 (diff)
r600g: zero memory of ioctl parameters
Fixes valgrind warning.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/r600/drm/r600_drm.c6
1 files changed, 3 insertions, 3 deletions
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;