diff options
-rw-r--r-- | libdiskfs/init-startup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c index 355a66ae..4094e3cc 100644 --- a/libdiskfs/init-startup.c +++ b/libdiskfs/init-startup.c @@ -43,9 +43,9 @@ diskfs_startup_diskfs (mach_port_t bootstrap, int flags) struct node *np, *old; struct protid *rootpi; - /* Skip leading slashes */ - while (_diskfs_chroot_directory == '/') - _diskfs_chroot_directory++; + /* Skip leading slashes. */ + while (*_diskfs_chroot_directory == '/') + ++_diskfs_chroot_directory; mutex_lock (&diskfs_root_node->lock); |