Bug #9023: Only check mice for "mouse" or "void" if identifier is != NULL.

This commit is contained in:
Matthias Hopf 2006-11-14 15:33:07 +01:00
parent a724b7f130
commit 26d2e45bdb

View File

@ -1307,7 +1307,7 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
* events, unless a 'void' section is found, in which case the user
* probably wants to run footless.
*/
for (i = servlayoutp->inputs; i->driver; i++) {
for (i = servlayoutp->inputs; i->identifier && i->driver; i++) {
if (!strcmp(i->driver, "void") || !strcmp(i->driver, "mouse")) {
found = 1; break;
}