Reacted on warnings of cppcheck about libisoburn/burn_wrap.c

master
Thomas Schmitt 12 years ago
parent ff17e1e6dd
commit 8426577362
  1. 12
      libisoburn/burn_wrap.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -344,7 +344,7 @@ int isoburn_is_intermediate_dvd_rw(struct burn_drive *d, int flag)
static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
int flag)
{
int ret, lba, nwa, profile, readonly= 0, role, random_access;
int ret, profile, readonly= 0, role, random_access;
int emulation_started= 0;
struct burn_multi_caps *caps= NULL;
struct isoburn_toc_entry *t;
@ -356,6 +356,10 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
char msg[80];
enum burn_disc_status s;
#ifndef Hardcoded_cd_rW
int lba, nwa;
#endif
s= burn_disc_get_status(d);
profile_name[0]= 0;
ret= burn_disc_get_profile(d, &profile, profile_name);
@ -417,7 +421,13 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
/* >>> recognize unsuitable media (but allow read-only media) */;
if(readonly && s != BURN_DISC_EMPTY) {
/* >>> ts B10712: This maps BURN_DISC_UNSUITABLE to BURN_DISC_FULL
which can hardly be correct in general.
??? What reason does this have ?
*/
(*o)->fabricated_disc_status= BURN_DISC_FULL;
/* This might be overwriteable media in a -ROM drive.
Pitfall:
Multi-session media which bear a xorriso image for overwriteables

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.12.135452"
#define Xorriso_timestamP "2011.07.15.083052"

Loading…
Cancel
Save