diff options
Diffstat (limited to 'nx-X11/programs/Xserver/randr/rrmonitor.c')
-rw-r--r-- | nx-X11/programs/Xserver/randr/rrmonitor.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/randr/rrmonitor.c b/nx-X11/programs/Xserver/randr/rrmonitor.c index 13b061c35..e9031a567 100644 --- a/nx-X11/programs/Xserver/randr/rrmonitor.c +++ b/nx-X11/programs/Xserver/randr/rrmonitor.c @@ -507,14 +507,9 @@ RRMonitorAdd(ClientPtr client, ScreenPtr screen, RRMonitorPtr monitor) * needs to not have any side-effects on failure */ if (pScrPriv->numMonitors) -#ifndef NXAGENT_SERVER monitors = reallocarray(pScrPriv->monitors, pScrPriv->numMonitors + 1, sizeof(RRMonitorPtr)); -#else /* !defined(NXAGENT_SERVER) */ - monitors = realloc(pScrPriv->monitors, - (pScrPriv->numMonitors + 1) * sizeof(RRMonitorPtr)); -#endif /* !defined(NXAGENT_SERVER) */ else monitors = malloc(sizeof(RRMonitorPtr)); |