Fix segfault when "kbd" fails to load and "keyboard" driver is not

configured.
This commit is contained in:
Alan Coopersmith 2005-08-12 01:17:58 +00:00
parent 13e16ee93a
commit 5f5117729d

View File

@ -1137,6 +1137,7 @@ 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. */
if (xf86Info.kbdProc != NULL)
xf86Info.pKeyboard = AddInputDevice(xf86Info.kbdProc, TRUE); xf86Info.pKeyboard = AddInputDevice(xf86Info.kbdProc, TRUE);
#endif #endif
} }