From c810f9f80b9db62de09b6cf4c6ca770eed72ce53 Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Sat, 6 Jul 2013 11:26:15 -0500 Subject: This inlines CRC64, and nothing more. The functions involved were called only once. --- lib/dirtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/dirtree.c b/lib/dirtree.c index e119c5d1..361686aa 100644 --- a/lib/dirtree.c +++ b/lib/dirtree.c @@ -138,7 +138,7 @@ void dirtree_recurse(struct dirtree *node, struct dirent *entry; DIR *dir; - if (!(dir = fdopendir(node->data))) { + if (node->data == -1 || !(dir = fdopendir(node->data))) { char *path = dirtree_path(node, 0); perror_msg("No %s", path); free(path); -- cgit v1.2.3