diff --git a/components/fs/vfs/vfs_mount.c b/components/fs/vfs/vfs_mount.c index a06be352e7bfad6e02656f98cb274873e4b809f3..d6821b1a69d4475dc60cd2fdfe177ea59cd3e899 100644 --- a/components/fs/vfs/vfs_mount.c +++ b/components/fs/vfs/vfs_mount.c @@ -250,7 +250,7 @@ STATIC int VfsRemount(const char *source, const char *target, STATIC int VfsMountPathCheck(const char *target) { /* target must begin with '/', for example /system, /data, etc. */ - if ((target == NULL) || (target[0] != '/') || (target[0] == '\0')) { + if ((target == NULL) || (target[0] != '/')) { errno = EINVAL; return (int)LOS_NOK; }