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.
This commit is contained in:
Stefan Schmidt 2015-11-30 16:23:00 +01:00
parent 384261978c
commit 527ac119f1
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ _thumb_generate(Ethumb *e)
const char *file;
Ethumb_Thumb_Format f;
double dv;
struct _emotion_plugin *_plugin = calloc(sizeof(struct _emotion_plugin), 1);
struct _emotion_plugin *_plugin = calloc(1, sizeof(struct _emotion_plugin));
o = emotion_object_add(ethumb_evas_get(e));
r = emotion_object_init(o, NULL);