diff options
author | Terry Lambert <tlambert@chromium.org> | 2011-07-15 17:23:22 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-07-18 11:54:28 +1000 |
commit | 38e4defe795776479594825859e101cd7cb5aa17 (patch) | |
tree | 571eab3d875c71d91a166fa55a8c42c497f8b6cd | |
parent | e8aa2ff0629111fbc32d71bbbc46b469c0c9a996 (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>
-rw-r--r-- | src/kbd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -385,6 +385,9 @@ KbdProc(DeviceIntPtr device, int what) pKbd->KbdOff(pInfo, what); device->public.on = FALSE; break; + + default: + return BadValue; } return (Success); } |