mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 00:27:19 +08:00
fixup: merge condition
This commit is contained in:
parent
e94b759160
commit
91fc52df36
@ -759,7 +759,7 @@ up_one:
|
|||||||
|
|
||||||
/* remove '/' in the end of path if exist */
|
/* remove '/' in the end of path if exist */
|
||||||
dst--;
|
dst--;
|
||||||
if (dst >= fullpath && (dst != fullpath) && (*dst == '/'))
|
if (dst > fullpath && (*dst == '/'))
|
||||||
*dst = '\0';
|
*dst = '\0';
|
||||||
|
|
||||||
/* final check fullpath is not empty, for the special path of lwext "/.." */
|
/* final check fullpath is not empty, for the special path of lwext "/.." */
|
||||||
|
@ -668,7 +668,7 @@ char *dfs_normalize_path(const char *directory, const char *filename)
|
|||||||
|
|
||||||
/* remove '/' in the end of path if exist */
|
/* remove '/' in the end of path if exist */
|
||||||
dst--;
|
dst--;
|
||||||
if (dst >= fullpath && (dst != fullpath) && (*dst == '/'))
|
if (dst > fullpath && (*dst == '/'))
|
||||||
*dst = '\0';
|
*dst = '\0';
|
||||||
|
|
||||||
/* final check fullpath is not empty, for the special path of lwext "/.." */
|
/* final check fullpath is not empty, for the special path of lwext "/.." */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user