diff options
author | Terry Lambert <tlambert@chromium.org> | 2011-07-15 17:23:25 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-07-18 11:47:21 +1000 |
commit | dfb19f91313eb99fdd7f31ff66844a02fd4b73ff (patch) | |
tree | 5902660ca623d96cac56aebb42cbac8b4283b3cd /src | |
parent | e2eabdd0bd6bc33d65ba61aeb30f2c59ec90f516 (diff) |
Return proper default for unknown values in pInfo->device_control.
Signed-off-by: Terry Lambert <tlambert@chromium.org>
Reviewed-by: Stephane Marchesin <marcheu@chromium.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/void.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -171,6 +171,9 @@ xf86VoidControlProc(DeviceIntPtr device, int what) case DEVICE_CLOSE: device->public.on = FALSE; break; + + default: + return BadValue; } return Success; } |