mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
don't hard-crash Xserver on strdup() failure
The situation already is handled gracefully (by the next line), so no need to hard-crash the Xserver. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -95,7 +95,7 @@ vmwareAddDefaultMode(ScrnInfoPtr pScrn, uint32 dwidth, uint32 dheight)
|
||||
|
||||
snprintf(name, sizeof(name), VMW_DEFLT_MODE_NAME, dwidth, dheight);
|
||||
|
||||
dynModeName = XNFstrdup(name);
|
||||
dynModeName = strdup(name);
|
||||
if (!dynModeName || !pScrn->display)
|
||||
goto out_err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user