forked from pool/cdparanoia
12 lines
370 B
Diff
12 lines
370 B
Diff
|
--- cdparanoia-III-alpha9.8/interface/scan_devices.c
|
||
|
+++ cdparanoia-III-alpha9.8/interface/scan_devices.c
|
||
|
@@ -617,7 +617,7 @@
|
||
|
|
||
|
/* It would seem some TOSHIBA CDROMs gets things wrong */
|
||
|
|
||
|
- if (!strncmp (p + 8, "TOSHIBA", 7) &&
|
||
|
+ if (p && !strncmp (p + 8, "TOSHIBA", 7) &&
|
||
|
!strncmp (p + 16, "CD-ROM", 6) &&
|
||
|
p[0] == TYPE_DISK) {
|
||
|
p[0] = TYPE_ROM;
|