seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=e0b044c86150ce32be79874680d09f814c1e5edb
commit e0b044c86150ce32be79874680d09f814c1e5edb Author: Daniel Juyung Seo <[email protected]> Date: Mon Mar 16 23:19:17 2015 +0900 image: Initialize parameters in case of it just returns without assigning any value. In this way, callers does not need to consider initializing the parameters for their local variables. --- src/lib/elm_image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c index 7a852b8..257ff89 100644 --- a/src/lib/elm_image.c +++ b/src/lib/elm_image.c @@ -917,6 +917,9 @@ _elm_image_object_size_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd, int *w, int int cw = 0, ch = 0; const char *type; + if (w) *w = 0; + if (h) *h = 0; + type = evas_object_type_get(sd->img); if (!type) return; --
