projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
337f0bf
)
test/utils.c: Initialize palette->rgba to 0.
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Sun, 29 Aug 2010 22:02:02 +0000
(18:02 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Fri, 17 Dec 2010 21:57:53 +0000
(16:57 -0500)
That way it can be used with palettes that are not statically
allocated, without causing valgrind issues.
test/utils.c
patch
|
blob
|
history
diff --git
a/test/utils.c
b/test/utils.c
index
4701bf6
..
cde9c62
100644
(file)
--- a/
test/utils.c
+++ b/
test/utils.c
@@
-528,6
+528,8
@@
initialize_palette (pixman_indexed_t *palette, uint32_t depth, int is_rgb)
for (i = 0; i < 32768; ++i)
palette->ent[i] = lcg_rand() & mask;
+ memset (palette->rgba, 0, sizeof (palette->rgba));
+
for (i = 0; i < mask + 1; ++i)
{
uint32_t rgba24;