Commit 917d4b3c authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Rootless.c: Fatal error if malloc fails

parent 4ebd5fcd
......@@ -469,8 +469,12 @@ int nxagentExportProperty(WindowPtr pWin,
#ifdef _XSERVER64
else if (strcmp(typeS, "CARDINAL") == 0 || strcmp(typeS, "WM_SIZE_HINTS") == 0)
{
/* FIXME: is it okay here to ignore malloc fails? */
unsigned long *buffer = malloc(nUnits * sizeof(*buffer));
if (buffer == NULL)
{
FatalError("%s: malloc() failed.", __func__);
}
int *input = value;
if (buffer)
......
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