Commit cc7548f1 authored by Thomas Schmitt's avatar Thomas Schmitt

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

parent edca3393
#define Cdrskin_timestamP "2010.05.16.090624" #define Cdrskin_timestamP "2010.05.29.074318"
...@@ -229,8 +229,9 @@ static int sg_give_next_adr_raw(burn_drive_enumerator_t *idx, ...@@ -229,8 +229,9 @@ static int sg_give_next_adr_raw(burn_drive_enumerator_t *idx,
} }
} else if (initialize == -1) { } else if (initialize == -1) {
if (*(idx->ppsz_cd_drives) != NULL) if (idx->ppsz_cd_drives != NULL)
cdio_free_device_list(idx->ppsz_cd_drives); if (*(idx->ppsz_cd_drives) != NULL)
cdio_free_device_list(idx->ppsz_cd_drives);
idx->ppsz_cd_drives = NULL; idx->ppsz_cd_drives = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment