From: raster Date: Fri, 12 Aug 2011 02:34:34 +0000 (+0000) Subject: how about you actuallyl fix the code correctly rather than break it? X-Git-Tag: submit/trunk/20120815.174732~1008 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0521d1c2cb8ef50bc9180f94d49ff9f595d8b4d7;p=profile%2Fivi%2Fevas.git how about you actuallyl fix the code correctly rather than break it? git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62369 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/loaders/gif/evas_image_load_gif.c b/src/modules/loaders/gif/evas_image_load_gif.c index 59207f1..504018b 100644 --- a/src/modules/loaders/gif/evas_image_load_gif.c +++ b/src/modules/loaders/gif/evas_image_load_gif.c @@ -380,8 +380,8 @@ _evas_image_load_frame(Image_Entry *ie, GifFileType *gif, Image_Entry_Frame *fra if ((!gif) || (!frame)) return EINA_FALSE; gif_frame = (Gif_Frame *) frame->info; - if (LOAD_FRAME_NONE < type) return EINA_FALSE; - + if (type > LOAD_FRAME_DATA_INFO) return EINA_FALSE; + do { if (DGifGetRecordType(gif, &rec) == GIF_ERROR) return EINA_FALSE;