diff options
Diffstat (limited to 'xserver/randr/rrscreen.c')
-rw-r--r-- | xserver/randr/rrscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/randr/rrscreen.c b/xserver/randr/rrscreen.c index d6c499580..0c70b28dd 100644 --- a/xserver/randr/rrscreen.c +++ b/xserver/randr/rrscreen.c @@ -558,7 +558,7 @@ rrGetScreenResources(ClientPtr client, Bool query) extraLen = rep.length << 2; if (extraLen) { - extra = malloc(extraLen); + extra = calloc(1, extraLen); if (!extra) { free(modes); return BadAlloc; |