mi: When {en,dis}abling extensions, match names case-insensitively

Both because extension names are inconsistently capitalized on the wire,
and because the table we're walking spells it COMPOSITE not Composite.
The latter is certainly also a bug, but there's no reason for us to be
that strict.

Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2019-01-16 14:20:17 -05:00 committed by Adam Jackson
parent 086c2e3de5
commit bf991a5f98
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ EnableDisableExtension(const char *name, Bool enable)
for (i = 0; i < ARRAY_SIZE(staticExtensions); i++) {
ext = &staticExtensions[i];
if (strcmp(name, ext->name) == 0) {
if (strcasecmp(name, ext->name) == 0) {
if (ext->disablePtr != NULL) {
*ext->disablePtr = !enable;
return TRUE;