Clarified handling of missing drives when it shall be given up. Coverity CID 28697.

This commit is contained in:
Thomas Schmitt 2015-11-08 11:03:41 +00:00
parent 6c760c1d39
commit b1c64ffb86
2 changed files with 4 additions and 4 deletions

View File

@ -755,9 +755,9 @@ int Xorriso_give_up_drive(struct XorrisO *xorriso, int flag)
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
do_eject= 0;
}
Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
"on attempt to give up drive", 2);
if(!in_is_out_too) {
if(ret >= 0 && !in_is_out_too) {
if(drive!=NULL)
isoburn_drive_release(drive, do_eject);
if(dinfo!=NULL)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.07.111034"
#define Xorriso_timestamP "2015.11.08.110314"