From: Eric Anholt Date: Thu, 16 Feb 2012 19:30:49 +0000 (-0800) Subject: intel: Silence valgrind warning for getparam ioctl argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f33d100fa71cecfb163dd91cd56b9a2788a43c22;p=mesa.git intel: Silence valgrind warning for getparam ioctl argument. It was concerned that the 4 pad bytes on LP64 were uninitialized. --- diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 60781e5a272..4eeeb2f8561 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -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;