projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a7942c
)
intel: Silence valgrind warning for getparam ioctl argument.
author
Eric Anholt
<eric@anholt.net>
Thu, 16 Feb 2012 19:30:49 +0000
(11:30 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 21 Feb 2012 20:04:07 +0000
(12:04 -0800)
It was concerned that the 4 pad bytes on LP64 were uninitialized.
src/mesa/drivers/dri/intel/intel_screen.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_screen.c
b/src/mesa/drivers/dri/intel/intel_screen.c
index 60781e5a272e44824355e43f6b8d3ff44ab37f10..4eeeb2f856107085abd6bf79da1d167806cab2ee 100644
(file)
--- 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;