mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
Don't crash the server on Xorg -configure
This commit is contained in:
@@ -172,7 +172,8 @@ vmware_chain_module(pointer opts)
|
||||
matched = vmwlegacy_devices;
|
||||
}
|
||||
|
||||
for (i = 0; i < vmware_devices; i++) {
|
||||
/* Xorg -configure returns 1 from xf86MatchDevice with NULL gdevs */
|
||||
for (i = 0; gdevs && i < vmware_devices; i++) {
|
||||
gdev = gdevs[i];
|
||||
gdev->driver = driver_name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user