(xmb) deep list copy - Use malloc instead of calloc

This commit is contained in:
twinaphex 2017-08-07 00:14:37 +02:00
parent 0afb629c81
commit 56733c6f18

View File

@ -3804,14 +3804,14 @@ static void xmb_list_deep_copy(const file_list_t *src, file_list_t *dst)
if (src_udata)
{
void *data = calloc(1, sizeof(xmb_node_t));
void *data = malloc(sizeof(xmb_node_t));
memcpy(data, src_udata, sizeof(xmb_node_t));
file_list_set_userdata(dst, i, data);
}
if (src_adata)
{
void *data = calloc(1, sizeof(menu_file_list_cbs_t));
void *data = malloc(sizeof(menu_file_list_cbs_t));
memcpy(data, src_adata, sizeof(menu_file_list_cbs_t));
file_list_set_actiondata(dst, i, data);
}