[PATCH] xserver: Don't crash if Xv is not initialized

Keith Packard keithp at keithp.com
Mon Feb 14 18:09:31 PST 2011


> +    if (!OffscreenPrivateKey->initialized) {
> +	*num = 0;
> +	return NULL;
> +    }

Please use dixPrivateKeyRegistered instead of looking inside the
structure.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110214/3356e491/attachment.pgp>


More information about the xorg-devel mailing list