[PATCH] randr: Silence valgrind after server regen with panning enabled
Chris Wilson
chris at chris-wilson.co.uk
Fri Mar 16 08:53:40 PDT 2012
On Fri, 16 Mar 2012 08:45:38 -0700, Aaron Plattner <aplattner at nvidia.com> wrote:
> On 03/16/2012 04:39 AM, Chris Wilson wrote:
> > + randrp->pointerX = randrp->pointerY = 0; /* keep valgrind quiet */
>
> I don't think the comment is necessary, since initializing all the
> fields is standard good practice.
The comment was primarily because I wasn't sure if (0,0) was not just as
bogus a coordinate as leaving the values uninitialised. ;-)
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the xorg-devel
mailing list