Skip to content

Commit 842d527

Browse files
committed
replace strdup() by rt_strdup().
1 parent a538706 commit 842d527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dfs/dfs_v2/src/dfs_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int _get_parent_path(const char *fullpath, char *path)
5050
int len = 0;
5151
char *str = 0;
5252

53-
char *full_path = strdup(fullpath);
53+
char *full_path = rt_strdup(fullpath);
5454
if (full_path == NULL)
5555
{
5656
rt_set_errno(ENOMEM);

0 commit comments

Comments
 (0)