Blame SOURCES/cdrkit-1.1.11-readsegfault.patch

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