projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3842619
)
emotion: correct argument order for calloc()
author
Stefan Schmidt
<stefan@osg.samsung.com>
Mon, 30 Nov 2015 15:23:00 +0000
(16:23 +0100)
committer
Stefan Schmidt
<stefan@osg.samsung.com>
Mon, 30 Nov 2015 15:31:58 +0000
(16:31 +0100)
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
src/modules/ethumb/emotion/emotion.c
patch
|
blob
|
history
diff --git
a/src/modules/ethumb/emotion/emotion.c
b/src/modules/ethumb/emotion/emotion.c
index
6134406
..
2247318
100644
(file)
--- a/
src/modules/ethumb/emotion/emotion.c
+++ b/
src/modules/ethumb/emotion/emotion.c
@@
-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);