calloc initializes to 0

SVN revision: 55707
This commit is contained in:
Mike Blumenkrantz 2010-12-22 22:48:50 +00:00
parent 2aa8241d9e
commit 3f9380048f
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ _e_smart_add(Evas_Object *obj)
{
Smart_Data *sd = calloc(1, sizeof(Smart_Data));
if (!sd) return;
sd->x = sd->y = sd->w = sd->h = 0;
sd->sx = sd->sy = -1;
evas_object_smart_data_set(obj, sd);
}