[PATCH] xrandr: calloc XRRModeInfo's passed to libXrandr.

Alan Coopersmith alan.coopersmith at oracle.com
Thu May 2 18:16:34 PDT 2013


On 05/ 2/13 01:20 AM, Andy Ritger wrote:
>
> 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 at nvidia.com>
> Tested-by: Nikhil Mahale <nmahale at nvidia.com>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list