Commit 4d0f35c8 authored by Matthias Hopf's avatar Matthias Hopf
Browse files

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.
parent dfb1cce2
......@@ -196,9 +196,8 @@ xf86DuplicateMode(DisplayModePtr pMode)
pNew->prev = NULL;
if (pNew->name == NULL) {
} else {
pNew->name = xnfstrdup(pMode->name);
pNew->name = xnfstrdup(pMode->name);
return pNew;
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