Cared for an improbable error case. Coverity CID 21784.

This commit is contained in:
Thomas Schmitt 2015-10-29 08:19:32 +00:00
parent 14feb57314
commit 2aed244051
2 changed files with 6 additions and 2 deletions

View File

@ -3832,9 +3832,13 @@ int Cdrskin_assert_driveno(struct CdrskiN *skin, int flag)
int Cdrskin_get_device_adr(struct CdrskiN *skin,
char **device_adr, char **raw_adr, int *no_convert_fs_adr, int flag)
{
int ret;
if(skin->driveno < 0 || (unsigned int) skin->driveno >= skin->n_drives)
return(0);
burn_drive_get_adr(&skin->drives[skin->driveno],skin->device_adr);
ret= burn_drive_get_adr(&skin->drives[skin->driveno],skin->device_adr);
if(ret <= 0)
return(0);
*device_adr= skin->device_adr;
*raw_adr= skin->preskin->raw_device_adr;
*no_convert_fs_adr= skin->preskin->no_convert_fs_adr;

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.28.192331"
#define Cdrskin_timestamP "2015.10.29.082150"