Fix use of uninitialized fields reported by valgrind
authorSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 25 Oct 2011 12:45:34 +0000 (08:45 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 25 Oct 2011 16:00:19 +0000 (12:00 -0400)
commit498138c293a2abce44ce122114852f4e6c5b87fe
treef124ebc6e83cb4bd2884bcb600da8ee43aeda3f6
parent6131707e8fc39187d1d358481f7c57c57cfab206
Fix use of uninitialized fields reported by valgrind

In pixman-noop.c and pixman-sse2.c, we are accessing
image->bits.width/height without first making sure the image is a bits
image. The warning is harmless because we never act on this
information without checking that the image is a8r8g8b8, but valgrind
does warn about it.

In pixman-noop.c, just reorder the clauses in the if statement; in
pixman-sse2.c require images to have the FAST_PATH_BITS_IMAGE flag
set.
pixman/pixman-noop.c
pixman/pixman-sse2.c