Commit bf991a5f authored by Adam Jackson's avatar Adam Jackson 🎧 Committed by Adam Jackson
Browse files

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's avatarAdam Jackson <ajax@redhat.com>
parent 086c2e3d
Pipeline #15241 passed with stages
in 1 minute and 12 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment