[PATCH libX11] Fix three "use of uninitialized variable" coverity warnings

Alan Coopersmith alan.coopersmith at oracle.com
Tue May 19 14:50:08 PDT 2015


On 05/18/15 07:42 PM, Peter Hutterer wrote:
> False positive, if rlen/nbytes are unset we quit early before using it. Still,
> initialize it so we don't have to deal with these warnings again.

Yeah - they have a common pattern that I could understand Coverity not being
able to follow, where it's the default value of another variable that triggers
the early exit, in the case where they are both not set.   Seems safe & simple
enough to just set them as you've done.

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