radeon: silence valgrind warnings by zeroing memory

main
Marek Olšák 2010-12-02 04:12:16 +01:00
parent 1443bea488
commit 8420743301
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;