XFree86: Input: Perform case-insensitive comparisons on option names
This commit is contained in:
parent
e5ce982381
commit
94361cbba7
|
@ -329,7 +329,7 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
for (option = options; option; option = option->next) {
|
for (option = options; option; option = option->next) {
|
||||||
if (strcmp(option->key, "driver") == 0) {
|
if (strcasecmp(option->key, "driver") == 0) {
|
||||||
if (idev->driver) {
|
if (idev->driver) {
|
||||||
rval = BadRequest;
|
rval = BadRequest;
|
||||||
goto unwind;
|
goto unwind;
|
||||||
|
@ -352,8 +352,8 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev)
|
||||||
goto unwind;
|
goto unwind;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strcmp(option->key, "name") == 0 ||
|
if (strcasecmp(option->key, "name") == 0 ||
|
||||||
strcmp(option->key, "identifier") == 0) {
|
strcasecmp(option->key, "identifier") == 0) {
|
||||||
if (idev->identifier) {
|
if (idev->identifier) {
|
||||||
rval = BadRequest;
|
rval = BadRequest;
|
||||||
goto unwind;
|
goto unwind;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user