diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c index 502fa3ad..d067bd0f 100644 --- a/src/gdisp/image_gif.c +++ b/src/gdisp/image_gif.c @@ -823,7 +823,7 @@ baddatacleanup: gdispImageError gdispImageDraw_GIF(gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) { gdispImagePrivate * priv; imgdecode * decode; - uint8_t * q; + uint8_t * q = 0; coord_t mx, my, fx, fy; uint16_t cnt, gcnt; uint8_t col; diff --git a/src/gwin/gimage.c b/src/gwin/gimage.c index 35ca1c6d..8eed3ac7 100644 --- a/src/gwin/gimage.c +++ b/src/gwin/gimage.c @@ -41,6 +41,8 @@ static void _redraw(GHandle gh) { #endif // The default display area + dx = 0; + dy = 0; x = gh->x; y = gh->y; w = gh->width;