X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxtools.c;h=082eefa11e90b2b2e116e4db0fe28e3c01d7b25a;hb=cce10b37d5db502e4612ddfa5d7b14d41814445b;hp=35d4eff02360d3e184b04f4dba93d9f3a480b590;hpb=fdd99ebecfef4874ea12bc97839fa027a0e8ed2f;p=swftools.git diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 35d4eff..082eefa 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -205,8 +205,8 @@ static double get_spline_len(qspline_abc_t*s) void gfxtool_draw_dashed_line(gfxdrawer_t*d, gfxline_t*line, float*r, float phase) { double x=0,y=0; - double linepos,nextpos; - char on; + double linepos = 0,nextpos = 0; + char on = 0; int apos=0; if(line && line->type != gfx_moveTo) { @@ -911,7 +911,7 @@ gfxbbox_t* gfxline_isrectangle(gfxline_t*_l) gfxline_t*l = gfxline_clone(_l); gfxline_optimize(l); - double x1,x2,y1,y2; + double x1=0,x2=0,y1=0,y2=0; int xc=0,yc=0; char corners=0; @@ -1054,6 +1054,7 @@ gfxline_t* gfxline_restitch(gfxline_t*line) gfxpoint_t xy = {line->x, line->y}; dict_put(rev, &xy, prev); line->next = 0; + prev=0; } } line = next;