summaryrefslogtreecommitdiff
path: root/src/modules/ethumb
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-30 16:23:00 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-30 16:31:58 +0100
commit527ac119f1de21034e761b24923b0cb06d946649 (patch)
treef1b3e790f54bee43a23deff6a4f00085b501a4bf /src/modules/ethumb
parent384261978c47441f10f119f03fa78579866f5731 (diff)
emotion: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second argument. Say Thank You to smatch for finding this issues for us.
Diffstat (limited to 'src/modules/ethumb')
-rw-r--r--src/modules/ethumb/emotion/emotion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ethumb/emotion/emotion.c b/src/modules/ethumb/emotion/emotion.c
index 6134406af3..2247318805 100644
--- a/src/modules/ethumb/emotion/emotion.c
+++ b/src/modules/ethumb/emotion/emotion.c
@@ -367,7 +367,7 @@ _thumb_generate(Ethumb *e)
367 const char *file; 367 const char *file;
368 Ethumb_Thumb_Format f; 368 Ethumb_Thumb_Format f;
369 double dv; 369 double dv;
370 struct _emotion_plugin *_plugin = calloc(sizeof(struct _emotion_plugin), 1); 370 struct _emotion_plugin *_plugin = calloc(1, sizeof(struct _emotion_plugin));
371 371
372 o = emotion_object_add(ethumb_evas_get(e)); 372 o = emotion_object_add(ethumb_evas_get(e));
373 r = emotion_object_init(o, NULL); 373 r = emotion_object_init(o, NULL);