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