Blame SOURCES/cdrkit-1.1.11-readsegfault.patch

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