namespace_t*ns = malloc(sizeof(namespace_t));
memset(ns, 0, sizeof(namespace_t));
if(name[0] == '[') {
- U8 access;
+ U8 access = 0;
char*n = strdup(name);
char*bracket = strchr(n, ']');
if(bracket) {
static void draw_line(gfxdevice_t*dev, gfxline_t*line)
{
internal_t*i = (internal_t*)dev->internal;
- double x,y;
+ double x=0,y=0;
while(line)
{
}
l = l->next;
}
- if(!ok && !name) {
+ if(!ok && !hasname) {
gfxline_free(font->glyphs[font->num_glyphs].line);
font->glyphs[font->num_glyphs].line = 0;
font->glyphs[font->num_glyphs].advance = 0;
double x,y;
char s[256];
if(sscanf(line, "%lf %lf %s", &x, &y, (char*)&s) == 3) {
- if(s && !strcmp(s,"moveto")) {
+ if(!strcmp(s,"moveto")) {
w->moveto(w, convert_coord(x,z), convert_coord(y,z));
count++;
- } else if(s && !strcmp(s,"lineto")) {
+ } else if(!strcmp(s,"lineto")) {
w->lineto(w, convert_coord(x,z), convert_coord(y,z));
count++;
} else {
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) {
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;
}
-TAG* PNG2Image(TAG*t, U16 id, char*filename, int*width, int*height)
+TAG* PNG2Image(TAG*t, U16 id, char*filename, unsigned*width, unsigned*height)
{
char tagid[4];
U8*data;