[Mesa-dev] [PATCH 1/3] intel: Silence valgrind warning for getparam ioctl argument.
Eric Anholt
eric at anholt.net
Thu Feb 16 15:40:47 PST 2012
It was concerned that the 4 pad bytes on LP64 were uninitialized.
---
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 60781e5..4eeeb2f 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;
--
1.7.9
More information about the mesa-dev
mailing list