diff options
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; |