summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2013-04-24 23:27:48 +0100
committerDaniel Willmann <daniel@totalueberwachung.de>2013-04-24 23:27:48 +0100
commit7f87d9891d15dc5d2e19c4dbcaabd2133f95f23d (patch)
treeecccede5e58360d9e94c342486154819660d71c4 /src
parent72bbf5b49b449929ad1e12b15055eea35629e804 (diff)
eo: Fix incorrect pointer allocation
We want to allocate sizeof(Eo_Dbg_Info) - not sizeof(Eo_Dbg_Info *) bytes.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo_base_class.c2
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 2b5b69c..979e8a0 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
618{ 618{
619 const Eo_Dbg_Info **src = (const Eo_Dbg_Info **) _src; 619 const Eo_Dbg_Info **src = (const Eo_Dbg_Info **) _src;
620 Eo_Dbg_Info **dst = _dst; 620 Eo_Dbg_Info **dst = _dst;
621 *dst = calloc(1, sizeof(*dst)); 621 *dst = calloc(1, sizeof(Eo_Dbg_Info));
622 (*dst)->name = eina_stringshare_ref((*src)->name); 622 (*dst)->name = eina_stringshare_ref((*src)->name);
623 eina_value_copy(&((*src)->value), &((*dst)->value)); 623 eina_value_copy(&((*src)->value), &((*dst)->value));
624 return EINA_TRUE; 624 return EINA_TRUE;