Fixed a bug with uninitialized variable introduced by rev 3364

This commit is contained in:
Thomas Schmitt 2010-09-19 13:54:45 +00:00
parent c2ff24cf89
commit 641b696764
2 changed files with 3 additions and 4 deletions

View File

@ -500,9 +500,6 @@ int isoburn_prepare_disc_aux(struct burn_drive *in_d, struct burn_drive *out_d,
ret= isoburn_adjust_target_iso_head(out_o, opts->partition_offset, 0); ret= isoburn_adjust_target_iso_head(out_o, opts->partition_offset, 0);
if(ret <= 0) if(ret <= 0)
{ret= -1; goto ex;} {ret= -1; goto ex;}
iso_write_opts_set_overwrite_buf(wopts,
nwa>0 ? out_o->target_iso_head : NULL);
if(opts->no_emul_toc) { if(opts->no_emul_toc) {
if(out_o->nwa == out_o->zero_nwa && if(out_o->nwa == out_o->zero_nwa &&
out_o->zero_nwa == Libisoburn_overwriteable_starT out_o->zero_nwa == Libisoburn_overwriteable_starT
@ -523,6 +520,8 @@ int isoburn_prepare_disc_aux(struct burn_drive *in_d, struct burn_drive *out_d,
} }
iso_write_opts_set_ms_block(wopts, nwa); iso_write_opts_set_ms_block(wopts, nwa);
iso_write_opts_set_appendable(wopts, !new_img); iso_write_opts_set_appendable(wopts, !new_img);
iso_write_opts_set_overwrite_buf(wopts,
nwa>0 ? out_o->target_iso_head : NULL);
iso_write_opts_set_part_offset(wopts, opts->partition_offset, iso_write_opts_set_part_offset(wopts, opts->partition_offset,
opts->partition_secs_per_head, opts->partition_secs_per_head,
opts->partition_heads_per_cyl); opts->partition_heads_per_cyl);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2010.09.19.134042" #define Xorriso_timestamP "2010.09.19.135354"