[PATCH libXt] Fix possible NULL access

Matthieu Herrb matthieu.herrb at laas.fr
Tue Oct 26 12:40:20 PDT 2010


On Tue, Oct 26, 2010 at 02:00:09PM +0200, walter harms wrote:
> +	      // value.addr can be NULL see: !already_copied
> +	      if (value.addr)
>  		*((XtTranslations *)&widget->core.tm.current_state) =
>  		    *((XtTranslations *)value.addr);

Sorry to only have lame comments, but this is C not C++. Use C style
comments please (/* */) here.

-- 
Matthieu Herrb


More information about the xorg-devel mailing list