summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2015-03-16 21:09:35 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-16 21:18:28 +0900
commit917e613edc68d07a32844677828f994a2f2540f9 (patch)
treedb1c7fd5f2e82904d48dabb6897e421d34eda22b
parent46c0ac60da7ba40eb870370f6eb3fe310db5d844 (diff)
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
-rw-r--r--src/lib/elm_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 503bc56df..7a852b8e8 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -517,7 +517,7 @@ EOLIAN static void
517_elm_image_sizing_eval(Eo *obj, Elm_Image_Data *sd) 517_elm_image_sizing_eval(Eo *obj, Elm_Image_Data *sd)
518{ 518{
519 Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1; 519 Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
520 int w, h; 520 int w = 0, h = 0;
521 double ts; 521 double ts;
522 522
523 _elm_image_internal_sizing_eval(obj, sd); 523 _elm_image_internal_sizing_eval(obj, sd);