!642 fix:3.1内源代码检视问题

Merge pull request !642 from xuxinyu/master
This commit is contained in:
openharmony_ci
2022-03-19 12:50:08 +00:00
committed by Gitee
10 changed files with 12 additions and 19 deletions

View File

@@ -203,14 +203,14 @@ STATIC CHAR *VfsNormalizeFullpath(const CHAR *directory, const CHAR *filename, C
CHAR *fullpath = NULL;
if (filename[0] != '/') {
/* not a absolute path */
/* not an absolute path */
fullpath = VfsNotAbsolutePath(directory, filename, pathname, namelen);
if (fullpath == NULL) {
return (CHAR *)NULL;
}
} else {
/* it's a absolute path, use it directly */
/* it's an absolute path, use it directly */
fullpath = strdup(filename); /* copy string */
if (fullpath == NULL) {