Fixed use of uninitialized variable when blanking rol5 pseudo drives

This commit is contained in:
Thomas Schmitt 2011-03-22 08:13:59 +00:00
parent b4eae1ee7a
commit 3cf508481c
2 changed files with 10 additions and 12 deletions

View File

@ -659,16 +659,6 @@ void isoburn_disc_erase(struct burn_drive *drive, int fast)
char zero_buffer[Libisoburn_target_head_sizE];
struct burn_multi_caps *caps= NULL;
role = burn_drive_get_drive_role(drive);
if (role == 5) {
/* libburn will truncate the random-access write-only file
to zero size and change its state */
burn_disc_erase(drive, fast);
o->fabricated_disc_status= burn_disc_get_status(drive);
o->nwa= 0;
return;
}
ret= isoburn_find_emulator(&o, drive, 0);
if(ret>0) {
if(o->emulation_mode==-1) {
@ -676,7 +666,15 @@ void isoburn_disc_erase(struct burn_drive *drive, int fast)
burn_drive_cancel(drive);
goto ex;
}
role = burn_drive_get_drive_role(drive);
if (role == 5) {
/* libburn will truncate the random-access write-only file
to zero size and change its state */
burn_disc_erase(drive, fast);
o->fabricated_disc_status= burn_disc_get_status(drive);
o->nwa= 0;
goto ex;
}
if(o->emulation_mode > 0) { /* might be readonly with emulated sessions */
ret= burn_disc_get_multi_caps(drive, BURN_WRITE_NONE, &caps, 0);
if(ret > 0 && caps->start_adr)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.03.21.165533"
#define Xorriso_timestamP "2011.03.22.081408"