Commit a267a3bc authored by Steve Dibb's avatar Steve Dibb Committed by Jean-Baptiste Kempf

Use calloc as a safety measure since ifoRead functions populate parts of the data independently

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent fa457d44
......@@ -517,7 +517,7 @@ void ifoClose(ifo_handle_t *ifofile) {
static int ifoRead_VMG(ifo_handle_t *ifofile) {
vmgi_mat_t *vmgi_mat;
vmgi_mat = malloc(sizeof(vmgi_mat_t));
vmgi_mat = calloc(1, sizeof(vmgi_mat_t));
if(!vmgi_mat)
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment