Index: libisofs/test.c
===================================================================
RCS file: /cvs/burn/burn/libisofs/test.c,v
retrieving revision 1.1
diff -u -r1.1 test.c
--- libisofs/test.c	18 Jul 2005 22:44:12 -0000	1.1
+++ libisofs/test.c	27 Jul 2005 14:04:26 -0000
@@ -86,6 +86,11 @@
 		return 1;
 	}
 	fd = fopen(argv[optind+1], "w");
+	if (!fd) {
+		fprintf(stderr, "error: creating destination file %s\n",
+				argv[optind+1]);
+		exit(1);
+	}
 
 	volume = iso_volume_new( "VOLID", "PUBID", "PREPID" );
 	volset = iso_volset_new( volume, "VOLSETID" );
