evas git loader - move findo reset inside else as only that changes it
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 29 Jul 2017 00:41:55 +0000 (09:41 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 29 Jul 2017 00:42:44 +0000 (09:42 +0900)
only the else changes finfo so reset inside there. not really any bug
at all byt style-wise a bit better and analysers don't like it

found by PVS studio

src/modules/evas/image_loaders/gif/evas_image_load_gif.c

index 5646449..737e3fb 100644 (file)
@@ -738,9 +738,9 @@ open_file:
                               memcpy(thisframe->data, prevframe2->data,
                                      prop->w * prop->h * sizeof(DATA32));
                          }
+                       finfo = thisframe->info;
                     }
                   // now draw this frame on top
-                  finfo = thisframe->info;
                   _clip_coords(prop->w, prop->h, &xin, &yin,
                                finfo->x, finfo->y, finfo->w, finfo->h,
                                &x, &y, &w, &h);