diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2013-04-24 23:27:48 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2013-04-24 23:27:48 +0100 |
commit | 7f87d9891d15dc5d2e19c4dbcaabd2133f95f23d (patch) | |
tree | ecccede5e58360d9e94c342486154819660d71c4 | |
parent | 72bbf5b49b449929ad1e12b15055eea35629e804 (diff) | |
download | efl-7f87d9891d15dc5d2e19c4dbcaabd2133f95f23d.tar.gz |
eo: Fix incorrect pointer allocation
We want to allocate sizeof(Eo_Dbg_Info) - not sizeof(Eo_Dbg_Info *)
bytes.
-rw-r--r-- | src/lib/eo/eo_base_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 2b5b69c671..979e8a09c3 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -618,7 +618,7 @@ _eo_dbg_info_copy(const Eina_Value_Type *type EINA_UNUSED, const void *_src, voi { const Eo_Dbg_Info **src = (const Eo_Dbg_Info **) _src; Eo_Dbg_Info **dst = _dst; - *dst = calloc(1, sizeof(*dst)); + *dst = calloc(1, sizeof(Eo_Dbg_Info)); (*dst)->name = eina_stringshare_ref((*src)->name); eina_value_copy(&((*src)->value), &((*dst)->value)); return EINA_TRUE; |