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.
This commit is contained in:
Daniel Juyung Seo 2015-03-16 23:19:17 +09:00
parent 74b6b65426
commit 53fafc464e
1 changed files with 3 additions and 0 deletions

View File

@ -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;