From b4e2c8a8e2c7e7eb4f0c5c48126de1e1038dedf4 Mon Sep 17 00:00:00 2001 From: liuwenxin Date: Fri, 13 Jan 2023 10:39:52 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20705bfbd=20from=20https://gitee.com/wenx?= =?UTF-8?q?in-liu=5Fadmin/kernel=5Fliteos=5Fm/pulls/1010=20fix=EF=BC=9Arel?= =?UTF-8?q?ease=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release分支告警清理 close:#I6AD15 Signed-off-by: liuwenxin --- components/fs/vfs/vfs_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fs/vfs/vfs_mount.c b/components/fs/vfs/vfs_mount.c index a06be352..d6821b1a 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; }