xserver: Branch 'master'

Matthias Hopf mhopf at kemper.freedesktop.org
Fri Nov 2 11:59:17 PDT 2007


 hw/xfree86/modes/xf86Modes.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 4d0f35c81df307609b29c0f12aa1b4c6ee6fd8d2
Author: Matthias Hopf <mhopf at suse.de>
Date:   Fri Nov 2 19:27:32 2007 +0100

    Always duplicate mode name when duplicating a mode.
    
    If the originating mode didn't have a name, we would end up with the name of
    the original mode being setup correctly, but with the name of the copy still
    being NULL.

diff --git a/hw/xfree86/modes/xf86Modes.c b/hw/xfree86/modes/xf86Modes.c
index 9981789..3879b91 100644
--- a/hw/xfree86/modes/xf86Modes.c
+++ b/hw/xfree86/modes/xf86Modes.c
@@ -196,9 +196,8 @@ xf86DuplicateMode(DisplayModePtr pMode)
     pNew->prev = NULL;
     if (pNew->name == NULL) {
 	xf86SetModeDefaultName(pMode);
-    } else {
-	pNew->name = xnfstrdup(pMode->name);
     }
+    pNew->name = xnfstrdup(pMode->name);
 
     return pNew;
 }


More information about the xorg-commit mailing list