Removed unneccessary variables which were used uninitialized. Coverity CID 28810.

This commit is contained in:
Thomas Schmitt 2015-11-06 13:07:07 +00:00
parent 90b80fdb6c
commit 09683e9baf
2 changed files with 2 additions and 4 deletions

View File

@ -967,7 +967,7 @@ int Xorriso_media_product(struct XorrisO *xorriso, int flag)
*/
int Xorriso_toc(struct XorrisO *xorriso, int flag)
{
int num_sessions= 0, num_tracks= 0, lba= 0, nwa= -1, pmin, psec, pframe, ret;
int num_sessions= 0, num_tracks= 0, lba= 0, nwa= -1, ret;
int track_count= 0, session_no, track_no, profile_no= -1, track_size;
int last_track_start= 0, last_track_size= -1, num_data= 0, is_data= 0;
int is_inout_drive= 0, drive_role, status, num_formats, emul_lba;
@ -1338,9 +1338,7 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
isoburn_toc_session_get_leadout_entry(sessions[session_no], &toc_entry);
if (toc_entry.extensions_valid & 1) {
lba= toc_entry.start_lba;
burn_lba_to_msf(lba, &pmin, &psec, &pframe);
} else {
lba= burn_msf_to_lba(pmin, psec, pframe);
lba= burn_msf_to_lba(toc_entry.pmin, toc_entry.psec, toc_entry.pframe);
}
last_track_size= lba - last_track_start;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.06.125705"
#define Xorriso_timestamP "2015.11.06.130635"