From 917e613edc68d07a32844677828f994a2f2540f9 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Mon, 16 Mar 2015 21:09:35 +0900 Subject: [PATCH] elm_image: Fix to initialize variable. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c index 503bc56..7a852b8 100644 --- a/src/lib/elm_image.c +++ b/src/lib/elm_image.c @@ -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); -- 2.7.4