commit | 498138c293a2abce44ce122114852f4e6c5b87fe | [log] [tgz] |
---|---|---|
author | Søren Sandmann Pedersen <ssp@redhat.com> | Tue Oct 25 08:45:34 2011 -0400 |
committer | Søren Sandmann Pedersen <ssp@redhat.com> | Tue Oct 25 12:00:19 2011 -0400 |
tree | f124ebc6e83cb4bd2884bcb600da8ee43aeda3f6 | |
parent | 6131707e8fc39187d1d358481f7c57c57cfab206 [diff] |
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.