Browse Source

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

master
Thomas Schmitt 7 years ago
parent
commit
77a68611e5
  1. 4
      xorriso/drive_mgt.c
  2. 2
      xorriso/xorriso_timestamp.h

4
xorriso/drive_mgt.c

@ -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;

2
xorriso/xorriso_timestamp.h

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

Loading…
Cancel
Save