Mercurial > libdvdread4.hg
comparison ifo_read.c @ 89:42d169fbee1d src
Clear pf_temp to make sure it is initialized
Patch by Erik Hovland <erik@hovland.org>
author | rathann |
---|---|
date | Sun, 17 Nov 2013 00:16:02 +0000 |
parents | 3893da169ede |
children | 23d412d59d62 |
comparison
equal
deleted
inserted
replaced
88:3893da169ede | 89:42d169fbee1d |
---|---|
1383 if(!pf_temp) { | 1383 if(!pf_temp) { |
1384 free_ptl_mait(ptl_mait, i); | 1384 free_ptl_mait(ptl_mait, i); |
1385 ifofile->ptl_mait = NULL; | 1385 ifofile->ptl_mait = NULL; |
1386 return 0; | 1386 return 0; |
1387 } | 1387 } |
1388 memset(pf_temp, 0, info_length); | |
1388 if(!(DVDReadBytes(ifofile->file, pf_temp, info_length))) { | 1389 if(!(DVDReadBytes(ifofile->file, pf_temp, info_length))) { |
1389 fprintf(stderr, "libdvdread: Unable to read PTL_MAIT table at index %d.\n",i); | 1390 fprintf(stderr, "libdvdread: Unable to read PTL_MAIT table at index %d.\n",i); |
1390 free(pf_temp); | 1391 free(pf_temp); |
1391 free_ptl_mait(ptl_mait, i); | 1392 free_ptl_mait(ptl_mait, i); |
1392 ifofile->ptl_mait = NULL; | 1393 ifofile->ptl_mait = NULL; |