git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31dbdce
)
clear fillinfo_t before use (fix valgrind 'uninitialized byte' warning)
author
kramm
<kramm>
Sun, 6 Apr 2008 16:50:21 +0000
(16:50 +0000)
committer
kramm
<kramm>
Sun, 6 Apr 2008 16:50:21 +0000
(16:50 +0000)
lib/devices/render.c
patch
|
blob
|
history
diff --git
a/lib/devices/render.c
b/lib/devices/render.c
index
a0f2031
..
f8dbbe2
100644
(file)
--- a/
lib/devices/render.c
+++ b/
lib/devices/render.c
@@
-438,6
+438,7
@@
void fill(gfxdevice_t*dev, fillinfo_t*fill)
void fill_solid(gfxdevice_t*dev, gfxcolor_t* color)
{
fillinfo_t info;
void fill_solid(gfxdevice_t*dev, gfxcolor_t* color)
{
fillinfo_t info;
+ memset(&info, 0, sizeof(info));
info.type = filltype_solid;
info.color = color;
fill(dev, &info);
info.type = filltype_solid;
info.color = color;
fill(dev, &info);
@@
-588,6
+589,7
@@
void render_startclip(struct _gfxdevice*dev, gfxline_t*line)
{
internal_t*i = (internal_t*)dev->internal;
fillinfo_t info;
{
internal_t*i = (internal_t*)dev->internal;
fillinfo_t info;
+ memset(&info, 0, sizeof(info));
newclip(dev);
info.type = filltype_clip;
draw_line(dev, line);
newclip(dev);
info.type = filltype_clip;
draw_line(dev, line);
@@
-619,6
+621,7
@@
void render_fillbitmap(struct _gfxdevice*dev, gfxline_t*line, gfximage_t*img, gf
draw_line(dev, line);
fillinfo_t info;
draw_line(dev, line);
fillinfo_t info;
+ memset(&info, 0, sizeof(info));
info.type = filltype_bitmap;
info.image = img;
info.matrix = &m2;
info.type = filltype_bitmap;
info.image = img;
info.matrix = &m2;