kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=bfa12b68fed3c4bb5f6ab9389a116002eaf6842f

commit bfa12b68fed3c4bb5f6ab9389a116002eaf6842f
Author: Kim Woelders <k...@woelders.dk>
Date:   Sun Apr 3 19:42:59 2016 +0200

    GIF loader: Remove check made redundant by previous commit.
    
    Patch by Yuriy M. Kaminskiy.
---
 src/modules/loaders/loader_gif.c | 8 --------
 1 file changed, 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++)

-- 


Reply via email to