diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-28 20:48:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-28 20:55:41 +0000 |
commit | 76b14a90c16921426154be1d18307e3b12309eea (patch) | |
tree | dca4bfa709a1661085bdfc6560a599eed2015fbd /src/intel_device.c | |
parent | 54aaf14dbf33b0e81932507b8753a63d1c6c8e77 (diff) |
sna: Quieten a couple of valgrind warnings about unknown ioctls
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_device.c')
-rw-r--r-- | src/intel_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index 0db65cad..4d08a6eb 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -67,8 +67,9 @@ static int intel_device_key = -1; static int __intel_get_device_id(int fd) { struct drm_i915_getparam gp; - int devid; + int devid = 0; + memset(&gp, 0, sizeof(gp)); gp.param = I915_PARAM_CHIPSET_ID; gp.value = &devid; |