From 5a3fb3b8123a1c6cee677062587d0f18d8797f8f Mon Sep 17 00:00:00 2001 From: NRK Date: Sat, 25 Dec 2021 08:07:30 +0600 Subject: fix -Wmaybe-uninitialized warning --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image.c') diff --git a/image.c b/image.c index 03c1f00..2c4eec1 100644 --- a/image.c +++ b/image.c @@ -159,7 +159,7 @@ static bool img_load_gif(img_t *img, const fileinfo_t *file) GifRowType *rows = NULL; GifRecordType rec; ColorMapObject *cmap; - DATA32 bgpixel, *data, *ptr; + DATA32 bgpixel = 0, *data, *ptr; DATA32 *prev_frame = NULL; Imlib_Image im; int i, j, bg, r, g, b; -- cgit v1.2.3