diff options
author | Eric Anholt <[email protected]> | 2012-02-16 11:30:49 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-02-21 12:04:07 -0800 |
commit | f33d100fa71cecfb163dd91cd56b9a2788a43c22 (patch) | |
tree | c1413c6cfd31431cd86d26749bd5b31b38f5812e /src/mesa/drivers | |
parent | 5a7942c2f1e3af4daedd92c1ddf21fa6a0e4e752 (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.c | 1 |
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; |