Avoided SIGSEGV if no drives were found by scan
This commit is contained in:
parent
bae3cf6618
commit
282fdab6b1
@ -106,7 +106,7 @@ int libburner_aquire_drive(char *drive_adr, int *driveno)
|
|||||||
ret = libburner_aquire_by_adr(drive_adr);
|
ret = libburner_aquire_by_adr(drive_adr);
|
||||||
else
|
else
|
||||||
ret = libburner_aquire_by_driveno(driveno);
|
ret = libburner_aquire_by_driveno(driveno);
|
||||||
if (ret <= 0)
|
if (ret <= 0 || *driveno <= 0)
|
||||||
return ret;
|
return ret;
|
||||||
burn_disc_get_profile(drive_list[0].drive, ¤t_profile,
|
burn_disc_get_profile(drive_list[0].drive, ¤t_profile,
|
||||||
current_profile_name);
|
current_profile_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user