aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 50ae3a8..f88653d 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -109,8 +109,8 @@ static fino_t get_ino(struct node *node)
static fino_t next_ino(struct fuse *f)
{
- while(f->ctr == 0 || __get_node(f, f->ctr) != NULL)
- f->ctr++;
+ do f->ctr++;
+ while(f->ctr == 0 || __get_node(f, f->ctr) != NULL);
return f->ctr;
}