diff options
author | Maciej Cencora <[email protected]> | 2009-03-07 14:05:19 +0100 |
---|---|---|
committer | Nicolai Haehnle <[email protected]> | 2009-03-07 16:20:16 +0100 |
commit | b125af1d2587d8e69218010ebba0b748467158a9 (patch) | |
tree | e4ef6d25929ca46d18a38619e98f6164a3daa063 | |
parent | ec1476bf31f00f5091e2a568b277962d8b667248 (diff) |
r300: shut up valgrind
It complained about uninitialized values
Signed-off-by: Nicolai Haehnle <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_ioctl.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_ioctl.c b/src/mesa/drivers/dri/r300/radeon_ioctl.c index 724016de6ee..f042a7b943a 100644 --- a/src/mesa/drivers/dri/r300/radeon_ioctl.c +++ b/src/mesa/drivers/dri/r300/radeon_ioctl.c @@ -59,7 +59,7 @@ static uint32_t radeonGetLastFrame(radeonContextPtr radeon) { drm_radeon_getparam_t gp; int ret; - uint32_t frame; + uint32_t frame = 0; gp.param = RADEON_PARAM_LAST_FRAME; gp.value = (int *)&frame; diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index f7cba5016b8..7e1fe9cda4f 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -363,7 +363,7 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv ) unsigned char *RADEONMMIO; int i; int ret; - uint32_t temp; + uint32_t temp = 0; if (sPriv->devPrivSize != sizeof(RADEONDRIRec)) { fprintf(stderr,"\nERROR! sizeof(RADEONDRIRec) does not match passed size from device driver\n"); |