Commit a097e3da 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 a267a3bc
...@@ -611,7 +611,7 @@ static int ifoRead_VTS(ifo_handle_t *ifofile) { ...@@ -611,7 +611,7 @@ static int ifoRead_VTS(ifo_handle_t *ifofile) {
vtsi_mat_t *vtsi_mat; vtsi_mat_t *vtsi_mat;
int i; int i;
vtsi_mat = malloc(sizeof(vtsi_mat_t)); vtsi_mat = calloc(1, sizeof(vtsi_mat_t));
if(!vtsi_mat) if(!vtsi_mat)
return 0; 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