Fix wrong usages of malloc, calloc and E_NEW

Patch by bad-alloc.cocci


SVN revision: 50828
This commit is contained in:
Lucas De Marchi 2010-08-05 00:50:43 +00:00
parent 133c3b83e0
commit c3a6049d53
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ _ephoto_thumbnail_generated(void *data, Ethumb_Client *client, int id,
{
Ephoto_Thumb_Data *etd;
etd = calloc(1, sizeof(etd));
etd = calloc(1, sizeof(*etd));
etd->thumb_path = eina_stringshare_add(thumb_path);
etd->file = eina_stringshare_add(file);