aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-12-25 08:07:30 +0600
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2022-01-06 17:53:02 +0000
commit5a3fb3b8123a1c6cee677062587d0f18d8797f8f (patch)
tree02678d38bc537b138199470183d0a2d2dc0991f4
parentb42e3ef3d4f8068a9bf694c6a8c90161e281f0d7 (diff)
fix -Wmaybe-uninitialized warning
-rw-r--r--image.c2
1 files changed, 1 insertions, 1 deletions
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;