diff options
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/xkbInit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xkb/xkbInit.c b/xkb/xkbInit.c index 573c4ff1d..5308a29df 100644 --- a/xkb/xkbInit.c +++ b/xkb/xkbInit.c @@ -503,8 +503,9 @@ InitKeyboardDeviceStruct(DeviceIntPtr dev, XkbRMLVOSet * rmlvo, XkbEventCauseRec cause; XkbRMLVOSet rmlvo_dflts = { NULL }; - if (dev->key || dev->kbdfeed) - return FALSE; + BUG_RETURN_VAL(dev == NULL, FALSE); + BUG_RETURN_VAL(dev->key != NULL, FALSE); + BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE); if (!rmlvo) { rmlvo = &rmlvo_dflts; |