git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clear fillinfo_t before use (fix valgrind 'uninitialized byte' warning)
[swftools.git]
/
lib
/
devices
/
render.c
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;