Cared for an improbable error case. Coverity CID 21784.
This commit is contained in:
parent
14feb57314
commit
2aed244051
@ -3832,9 +3832,13 @@ int Cdrskin_assert_driveno(struct CdrskiN *skin, int flag)
|
|||||||
int Cdrskin_get_device_adr(struct CdrskiN *skin,
|
int Cdrskin_get_device_adr(struct CdrskiN *skin,
|
||||||
char **device_adr, char **raw_adr, int *no_convert_fs_adr, int flag)
|
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)
|
if(skin->driveno < 0 || (unsigned int) skin->driveno >= skin->n_drives)
|
||||||
return(0);
|
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;
|
*device_adr= skin->device_adr;
|
||||||
*raw_adr= skin->preskin->raw_device_adr;
|
*raw_adr= skin->preskin->raw_device_adr;
|
||||||
*no_convert_fs_adr= skin->preskin->no_convert_fs_adr;
|
*no_convert_fs_adr= skin->preskin->no_convert_fs_adr;
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2015.10.28.192331"
|
#define Cdrskin_timestamP "2015.10.29.082150"
|
||||||
|
Loading…
Reference in New Issue
Block a user