Index: libisofs/tree.c
===================================================================
RCS file: /cvs/burn/burn/libisofs/tree.c,v
retrieving revision 1.12
diff -u -r1.12 tree.c
--- libisofs/tree.c	18 Jul 2005 22:44:12 -0000	1.12
+++ libisofs/tree.c	27 Jul 2005 14:02:08 -0000
@@ -196,6 +196,9 @@
 	/* Open the directory for reading and iterate over the directory
 	   entries. */
 	dir = opendir(path);
+	if (dir == NULL)
+		return NULL;
+
 	while ((ent = readdir(dir))) {
 		char *child;
 
