aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 277cf7b..6646f79 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -77,13 +77,13 @@ vfs_hash_path(const char *path)
return 0;
}
- while (name != NULL) {
+ do {
name = vfs_get_fname_at(path, i++);
if (name != NULL) {
hash += vfs_hash(name);
dynfree(name);
}
- }
+ } while (name != NULL);
return hash;
}