mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-17 00:32:57 +00:00
Fix segfault when "kbd" fails to load and "keyboard" driver is not
configured.
This commit is contained in:
parent
13e16ee93a
commit
5f5117729d
1 changed files with 2 additions and 1 deletions
|
|
@ -1137,7 +1137,8 @@ InitInput(argc, argv)
|
||||||
else {
|
else {
|
||||||
#ifdef USE_DEPRECATED_KEYBOARD_DRIVER
|
#ifdef USE_DEPRECATED_KEYBOARD_DRIVER
|
||||||
/* Only set this if we're allowing the old 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
|
#endif
|
||||||
}
|
}
|
||||||
if (corePointer)
|
if (corePointer)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue