summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-16 23:19:17 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-16 23:19:20 +0900
commite0b044c86150ce32be79874680d09f814c1e5edb (patch)
treefbae527a9bf29d06bcca29f6b8f53a2bc6a0ade3
parent917e613edc68d07a32844677828f994a2f2540f9 (diff)
downloadelementary-e0b044c86150ce32be79874680d09f814c1e5edb.tar.gz
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.
-rw-r--r--src/lib/elm_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 7a852b8e8..257ff89a2 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;