Browse Source

Bug fix: SIGSEGV of libcdio system adapter if drive list is empty

tags/ZeroEightTwo
Thomas Schmitt 10 years ago
parent
commit
cc7548f1c7
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +3
    -2
      libburn/sg-libcdio.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@@ -1 +1 @@
#define Cdrskin_timestamP "2010.05.16.090624"
#define Cdrskin_timestamP "2010.05.29.074318"

+ 3
- 2
libburn/sg-libcdio.c View File

@@ -229,8 +229,9 @@ static int sg_give_next_adr_raw(burn_drive_enumerator_t *idx,
}

} else if (initialize == -1) {
if (*(idx->ppsz_cd_drives) != NULL)
cdio_free_device_list(idx->ppsz_cd_drives);
if (idx->ppsz_cd_drives != NULL)
if (*(idx->ppsz_cd_drives) != NULL)
cdio_free_device_list(idx->ppsz_cd_drives);
idx->ppsz_cd_drives = NULL;
}



Loading…
Cancel
Save