aboutsummaryrefslogtreecommitdiff
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/image.c b/image.c
index 9a47a14..980bf1a 100644
--- a/image.c
+++ b/image.c
@@ -203,10 +203,6 @@ static bool img_load_gif(img_t *img, const fileinfo_t *file)
ptr = data = emalloc(sw * sh * sizeof(DATA32));
cmap = gif->Image.ColorMap ? gif->Image.ColorMap : gif->SColorMap;
- if (bg >= cmap->ColorCount) {
- err = true;
- break;
- }
r = cmap->Colors[bg].Red;
g = cmap->Colors[bg].Green;
b = cmap->Colors[bg].Blue;