intel: Silence valgrind warning for getparam ioctl argument.
It was concerned that the 4 pad bytes on LP64 were uninitialized.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user