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:
		
							parent
							
								
									086c2e3de5
								
							
						
					
					
						commit
						bf991a5f98
					
				| 
						 | 
					@ -190,7 +190,7 @@ EnableDisableExtension(const char *name, Bool enable)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (i = 0; i < ARRAY_SIZE(staticExtensions); i++) {
 | 
					    for (i = 0; i < ARRAY_SIZE(staticExtensions); i++) {
 | 
				
			||||||
        ext = &staticExtensions[i];
 | 
					        ext = &staticExtensions[i];
 | 
				
			||||||
        if (strcmp(name, ext->name) == 0) {
 | 
					        if (strcasecmp(name, ext->name) == 0) {
 | 
				
			||||||
            if (ext->disablePtr != NULL) {
 | 
					            if (ext->disablePtr != NULL) {
 | 
				
			||||||
                *ext->disablePtr = !enable;
 | 
					                *ext->disablePtr = !enable;
 | 
				
			||||||
                return TRUE;
 | 
					                return TRUE;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue