elm_image: Fix to initialize variable.
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 16 Mar 2015 12:09:35 +0000 (21:09 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 16 Mar 2015 12:18:28 +0000 (21:18 +0900)
Summary: If _elm_image_object_size_get fails, w and h have garbage value.

Test Plan: no

Reviewers: seoz, Hermet, cedric, raster

Differential Revision: https://phab.enlightenment.org/D2163

src/lib/elm_image.c

index 503bc56..7a852b8 100644 (file)
@@ -517,7 +517,7 @@ EOLIAN static void
 _elm_image_sizing_eval(Eo *obj, Elm_Image_Data *sd)
 {
    Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
-   int w, h;
+   int w = 0, h = 0;
    double ts;
 
    _elm_image_internal_sizing_eval(obj, sd);