diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-12-02 04:12:16 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-12-02 04:17:18 +0100 |
commit | 8420743301a36dc1316fadf53bf8e1478068400a (patch) | |
tree | c63e30e8301ec0524453bcf70c904fece6bbdb5a /radeon | |
parent | 1443bea488f6ad47cb4469c01b35aea0377822c0 (diff) |
radeon: silence valgrind warnings by zeroing memory
Diffstat (limited to 'radeon')
-rw-r--r-- | radeon/radeon_bo_gem.c | 2 | ||||
-rw-r--r-- | radeon/radeon_cs_gem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c index 081ccb9f..719fba7c 100644 --- a/radeon/radeon_bo_gem.c +++ b/radeon/radeon_bo_gem.c @@ -252,7 +252,7 @@ static int bo_set_tiling(struct radeon_bo_int *boi, uint32_t tiling_flags, static int bo_get_tiling(struct radeon_bo_int *boi, uint32_t *tiling_flags, uint32_t *pitch) { - struct drm_radeon_gem_set_tiling args; + struct drm_radeon_gem_set_tiling args = {}; int r; args.handle = boi->handle; diff --git a/radeon/radeon_cs_gem.c b/radeon/radeon_cs_gem.c index 81bd3939..9834bcf1 100644 --- a/radeon/radeon_cs_gem.c +++ b/radeon/radeon_cs_gem.c @@ -517,7 +517,7 @@ static struct radeon_cs_funcs radeon_cs_gem_funcs = { static int radeon_get_device_id(int fd, uint32_t *device_id) { - struct drm_radeon_info info; + struct drm_radeon_info info = {}; int r; *device_id = 0; |