xrandr: calloc XRRModeInfo's passed to libXrandr.
authorAndy Ritger <aritger@nvidia.com>
Thu, 2 May 2013 08:20:27 +0000 (01:20 -0700)
committerAaron Plattner <aplattner@nvidia.com>
Mon, 6 May 2013 19:45:51 +0000 (12:45 -0700)
commitace5e2b21b2a204f94c6452fa0d8f36699aec249
tree2675b537e950b711fcf61cf72fa62b6e4092c871
parenteb17ad8adc9400f6ed252872f13ccf5551f9e2e9
xrandr: calloc XRRModeInfo's passed to libXrandr.

The "--newmode" commandline option initializes an XRRModeInfo and passes
it into XRRCreateMode().  calloc(3) it to avoid uninitialized fields.
For consistency, calloc(3) all the places where umode_t's (the wrapper
structure for XRRModeInfo) are allocated.

Signed-off-by: Andy Ritger <aritger@nvidia.com>
Tested-by: Nikhil Mahale <nmahale@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
xrandr.c