Made clear that a drive needs an isoburn object for writing. Coverity CID 28758.

This commit is contained in:
Thomas Schmitt 2015-11-03 15:41:47 +00:00
parent 089ff7586c
commit 9efb046330
2 changed files with 37 additions and 32 deletions

View File

@ -920,7 +920,13 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
ret= isoburn_find_emulator(&o, drive, 0);
if(ret<0)
goto ex;
if(o!=NULL) {
if(o == NULL) {
sprintf(msg,
"Program error: Cannot find isoburn object associated to the drive");
isoburn_msgs_submit(o, 0x00060000, msg, 0, "FAILURE", 0);
burn_drive_cancel(drive);
goto ex;
}
o->wrote_well= -1;
if(o->emulation_mode!=0) {
burn_write_opts_set_multi(opts, 0);
@ -955,7 +961,6 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
burn_write_opts_set_start_byte(opts, nwa * (off_t) 2048);
}
}
}
if(o->do_tao) {
if (o->do_tao > 0)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.03.150839"
#define Xorriso_timestamP "2015.11.03.154102"