From f33d100fa71cecfb163dd91cd56b9a2788a43c22 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 16 Feb 2012 11:30:49 -0800 Subject: [PATCH] intel: Silence valgrind warning for getparam ioctl argument. It was concerned that the 4 pad bytes on LP64 were uninitialized. --- src/mesa/drivers/dri/intel/intel_screen.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2