forked from enlightenment/efl
eo: Fix incorrect pointer allocation
We want to allocate sizeof(Eo_Dbg_Info) - not sizeof(Eo_Dbg_Info *) bytes.
This commit is contained in:
parent
72bbf5b49b
commit
7f87d9891d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue