From c3a6049d53daeeaa47bd96ab183907430548004f Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 5 Aug 2010 00:50:43 +0000 Subject: [PATCH] Fix wrong usages of malloc, calloc and E_NEW Patch by bad-alloc.cocci SVN revision: 50828 --- src/bin/ephoto_thumb_browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index 4e34787..c31fefa 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -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);