commit | c810f9f80b9db62de09b6cf4c6ca770eed72ce53 | [log] [tgz] |
---|---|---|
author | Isaac Dunham <idunham@lavabit.com> | Sat Jul 06 11:26:15 2013 -0500 |
committer | Isaac Dunham <idunham@lavabit.com> | Sat Jul 06 11:26:15 2013 -0500 |
tree | 2ef2dbf640e94ecd7918b54a1e1bea7ce779f78c | |
parent | 8e9ec867e5753e63778d67c3cb1cce68792f7b24 [diff] [blame] |
This inlines CRC64, and nothing more. The functions involved were called only once.
diff --git a/lib/dirtree.c b/lib/dirtree.c index e119c5d..361686a 100644 --- a/lib/dirtree.c +++ b/lib/dirtree.c
@@ -138,7 +138,7 @@ 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);