diff options
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index e893bcd7..71c4c605 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2112,7 +2112,8 @@ sna_output_get_modes(xf86OutputPtr output) Mode = calloc(1, sizeof(DisplayModeRec)); if (Mode) { *Mode = current; - Mode->name = strdup(Mode->name); + current.name = NULL; + output->probed_modes = xf86ModesAdd(output->probed_modes, Mode); } |