Made initialization of iso_read_opts safer
This commit is contained in:
parent
ea5192609c
commit
87904df3f6
@ -152,7 +152,8 @@ int isoburn_read_image(struct burn_drive *d,
|
|||||||
ret = isoburn_disc_get_msc1(d, (int*) &ropts.block);
|
ret = isoburn_disc_get_msc1(d, (int*) &ropts.block);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -2;
|
return -2;
|
||||||
|
|
||||||
|
memset((char *) &ropts, 0, sizeof(ropts));
|
||||||
ropts.norock = read_opts->norock;
|
ropts.norock = read_opts->norock;
|
||||||
ropts.nojoliet = read_opts->nojoliet;
|
ropts.nojoliet = read_opts->nojoliet;
|
||||||
ropts.preferjoliet = read_opts->preferjoliet;
|
ropts.preferjoliet = read_opts->preferjoliet;
|
||||||
|
Loading…
Reference in New Issue
Block a user