Cared for an improbable error case. Coverity CID 21784.

1.4.2
Thomas Schmitt 7 years ago
parent ef662655bb
commit 352a33d287
  1. 6
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

@ -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;

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

Loading…
Cancel
Save