intel: Silence valgrind warning for getparam ioctl argument.
authorEric Anholt <eric@anholt.net>
Thu, 16 Feb 2012 19:30:49 +0000 (11:30 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 21 Feb 2012 20:04:07 +0000 (12:04 -0800)
It was concerned that the 4 pad bytes on LP64 were uninitialized.

src/mesa/drivers/dri/intel/intel_screen.c

index 60781e5a272e44824355e43f6b8d3ff44ab37f10..4eeeb2f856107085abd6bf79da1d167806cab2ee 100644 (file)
@@ -361,6 +361,7 @@ intel_get_param(__DRIscreen *psp, int param, int *value)
    int ret;
    struct drm_i915_getparam gp;
 
+   memset(&gp, 0, sizeof(gp));
    gp.param = param;
    gp.value = value;