mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 10:27:23 +00:00
Fix segfault when "kbd" fails to load and "keyboard" driver is not
configured.
This commit is contained in:
@@ -1137,7 +1137,8 @@ InitInput(argc, argv)
|
||||
else {
|
||||
#ifdef USE_DEPRECATED_KEYBOARD_DRIVER
|
||||
/* Only set this if we're allowing the old driver. */
|
||||
xf86Info.pKeyboard = AddInputDevice(xf86Info.kbdProc, TRUE);
|
||||
if (xf86Info.kbdProc != NULL)
|
||||
xf86Info.pKeyboard = AddInputDevice(xf86Info.kbdProc, TRUE);
|
||||
#endif
|
||||
}
|
||||
if (corePointer)
|
||||
|
||||
Reference in New Issue
Block a user