[Tizen] Fix coverity error of gif-loading 62/242062/1 accepted/tizen/unified/20200824.134422 submit/tizen/20200824.022054
authorseungho <seungho@seungho.tn.corp.samsungelectronics.net>
Mon, 24 Aug 2020 02:12:01 +0000 (11:12 +0900)
committerseungho <seungho@seungho.tn.corp.samsungelectronics.net>
Mon, 24 Aug 2020 02:14:50 +0000 (11:14 +0900)
Change-Id: I810e0b78adc101b7d1643d2265b3b77636c03339
Signed-off-by: seungho <seungho@seungho.tn.corp.samsungelectronics.net>
dali/internal/imaging/common/gif-loading.cpp

index 187d91c..9e34c36 100644 (file)
@@ -494,10 +494,6 @@ bool DecodeImage( GifFileType *gif, uint32_t *data, int rowpix, int xin, int yin
   // what we need is image size.
   SavedImage *sp;
   sp = &gif->SavedImages[ gif->ImageCount - 1 ];
-  if( !sp )
-  {
-    goto on_error;
-  }
 
   gifW = sp->ImageDesc.Width;
   gifH = sp->ImageDesc.Height;