xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 16 20:12:43 UTC 2019


 mi/miinitext.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bf991a5f989c5e6e726a3731f468b7b7d65d9f4a
Author: Adam Jackson <ajax at redhat.com>
Date:   Wed Jan 16 14:20:17 2019 -0500

    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 at redhat.com>

diff --git a/mi/miinitext.c b/mi/miinitext.c
index 5596e212f..b7c702127 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -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;


More information about the xorg-commit mailing list