diff options
author | Isaac Dunham <idunham@lavabit.com> | 2013-07-06 11:26:15 -0500 |
---|---|---|
committer | Isaac Dunham <idunham@lavabit.com> | 2013-07-06 11:26:15 -0500 |
commit | c810f9f80b9db62de09b6cf4c6ca770eed72ce53 (patch) | |
tree | 2ef2dbf640e94ecd7918b54a1e1bea7ce779f78c /lib | |
parent | 8e9ec867e5753e63778d67c3cb1cce68792f7b24 (diff) | |
download | toybox-c810f9f80b9db62de09b6cf4c6ca770eed72ce53.tar.gz |
This inlines CRC64, and nothing more.
The functions involved were called only once.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dirtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |