From dfb19f91313eb99fdd7f31ff66844a02fd4b73ff Mon Sep 17 00:00:00 2001 From: Terry Lambert Date: Fri, 15 Jul 2011 17:23:25 -0700 Subject: Return proper default for unknown values in pInfo->device_control. Signed-off-by: Terry Lambert Reviewed-by: Stephane Marchesin Signed-off-by: Peter Hutterer --- src/void.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/void.c b/src/void.c index 0184893..b1225d6 100644 --- a/src/void.c +++ b/src/void.c @@ -171,6 +171,9 @@ xf86VoidControlProc(DeviceIntPtr device, int what) case DEVICE_CLOSE: device->public.on = FALSE; break; + + default: + return BadValue; } return Success; } -- cgit v1.2.3