r300: shut up valgrind
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 7 Mar 2009 13:05:19 +0000 (14:05 +0100)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 7 Mar 2009 15:20:16 +0000 (16:20 +0100)
It complained about uninitialized values

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/radeon_ioctl.c
src/mesa/drivers/dri/radeon/radeon_screen.c

index 724016de6ee6af40ba86d5428eb9045816f1fc9b..f042a7b943aaf6dcb8290bf4aabda39d227afe44 100644 (file)
@@ -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;
index f7cba5016b83f9ea05b5c9060f40267b0a282351..7e1fe9cda4f76f3e505274c9c0b0374a07d33473 100644 (file)
@@ -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");