radeon-gallium: Shut up Valgrind.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 9 May 2009 00:09:32 +0000 (17:09 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 9 May 2009 02:41:08 +0000 (19:41 -0700)
src/gallium/winsys/drm/radeon/core/radeon_r300.c

index 5dcce20cd5dc5bf2faba60b5a69e102c6a229fa1..556f1d9b876f7c5d82fa4bd5899132a7284facf0 100644 (file)
@@ -147,9 +147,9 @@ static void radeon_r300_flush_cs(struct r300_winsys* winsys)
 /* Helper function to do the ioctls needed for setup and init. */
 static void do_ioctls(struct r300_winsys* winsys, int fd)
 {
-    struct drm_radeon_gem_info info;
-    drm_radeon_getparam_t gp;
-    int target;
+    struct drm_radeon_gem_info info = {0};
+    drm_radeon_getparam_t gp = {0};
+    int target = 0;
     int retval;
 
     gp.value = &target;