summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-02-16 11:30:49 -0800
committerEric Anholt <[email protected]>2012-02-21 12:04:07 -0800
commitf33d100fa71cecfb163dd91cd56b9a2788a43c22 (patch)
treec1413c6cfd31431cd86d26749bd5b31b38f5812e /src/mesa/drivers
parent5a7942c2f1e3af4daedd92c1ddf21fa6a0e4e752 (diff)
intel: Silence valgrind warning for getparam ioctl argument.
It was concerned that the 4 pad bytes on LP64 were uninitialized.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c1
1 files changed, 1 insertions, 0 deletions
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;