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:
Enrico Weigelt, metux IT consult
2025-03-03 15:39:36 +01:00
parent b0dcacb02b
commit cbd330076a

View File

@@ -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;