diff options
author | Kim Woelders <kim@woelders.dk> | 2016-04-03 19:42:59 +0200 |
---|---|---|
committer | Kim Woelders <kim@woelders.dk> | 2016-04-07 20:20:47 +0200 |
commit | bfa12b68fed3c4bb5f6ab9389a116002eaf6842f (patch) | |
tree | 9ecb9ed1d8b56ff7ee062483f0a667ef9139f6f2 | |
parent | 37a96801663b7b4cd3fbe56cc0eb8b6a17e766a8 (diff) | |
download | imlib2-bfa12b68fed3c4bb5f6ab9389a116002eaf6842f.tar.gz |
GIF loader: Remove check made redundant by previous commit.
Patch by Yuriy M. Kaminskiy.
-rw-r--r-- | src/modules/loaders/loader_gif.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/modules/loaders/loader_gif.c b/src/modules/loaders/loader_gif.c index 4f08d64..b3d0612 100644 --- a/src/modules/loaders/loader_gif.c +++ b/src/modules/loaders/loader_gif.c @@ -163,14 +163,6 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, if (!im->data) goto quit; - if (!cmap) - { - /* No colormap? Now what?? Let's clear the image (and not segv) */ - memset(im->data, 0, sizeof(DATA32) * w * h); - rc = 1; - goto finish; - } - ptr = im->data; per_inc = 100.0 / (((float)w) * h); for (i = 0; i < h; i++) |