Blame SOURCES/cdrkit-1.1.11-readsegfault.patch

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