cooked_interface.c: check for TOC-read error.

cd-paranoia.c: check that list of drives isn't just NULL list.
This commit is contained in:
rocky
2005-01-15 02:23:04 +00:00
parent 87c4b8d39b
commit a3bafd4ba7
2 changed files with 8 additions and 2 deletions

View File

@@ -773,7 +773,7 @@ main(int argc,char *argv[])
CDIO_FS_AUDIO,
false,
&driver_id);
if (ppsz_cd_drives) {
if (ppsz_cd_drives && *ppsz_cd_drives) {
d=cdda_identify(*ppsz_cd_drives,verbose, NULL);
} else {
report("\nUnable find or access a CD-ROM drive with an audio CD"