Blame SOURCES/cdrkit-1.1.11-readsegfault.patch

395898
diff -up cdrkit-1.1.11/readom/readom.c.readsegfault cdrkit-1.1.11/readom/readom.c
395898
--- cdrkit-1.1.11/readom/readom.c.readsegfault	2011-03-07 15:51:46.889441591 +0100
395898
+++ cdrkit-1.1.11/readom/readom.c	2011-03-07 15:51:50.702938263 +0100
395898
@@ -906,7 +906,7 @@ read_ftoc(SCSI *usalp, parm_t *parmp, BO
395898
 
395898
 
395898
 	strcpy(filename, "toc.dat");
395898
-	if (strcmp(parmp->name, "/dev/null") != 0) {
395898
+	if (parmp != NULL && strcmp(parmp->name, "/dev/null") != 0) {
395898
 
395898
 		len = strlen(parmp->name);
395898
 		if (len > (sizeof (filename)-5)) {