We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef1829 commit f054a21Copy full SHA for f054a21
sys/vfs/vfs.c
@@ -585,7 +585,7 @@ inline static int _allocate_mount(const char *mount_point)
585
_free_mount(md);
586
return -EINVAL;
587
}
588
- if (mountp->mount_point[len - 1] == '/') {
+ if (len > 1 && mountp->mount_point[len - 1] == '/') {
589
/* remove trailing slash */
590
mountp->mount_point[len - 1] = '\0';
591
0 commit comments