diff options
Diffstat (limited to 'components/dfs/src/dfs_fs.c')
| -rw-r--r-- | components/dfs/src/dfs_fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c index 53e7e385a4..2abad9dfeb 100644 --- a/components/dfs/src/dfs_fs.c +++ b/components/dfs/src/dfs_fs.c @@ -323,7 +323,7 @@ int dfs_mount(const char *device_name, { /* The underlying device has error, clear the entry. */ dfs_lock(); - memset(fs, 0, sizeof(struct dfs_filesystem)); + rt_memset(fs, 0, sizeof(struct dfs_filesystem)); goto err1; } @@ -339,7 +339,7 @@ int dfs_mount(const char *device_name, /* mount failed */ dfs_lock(); /* clear filesystem table entry */ - memset(fs, 0, sizeof(struct dfs_filesystem)); + rt_memset(fs, 0, sizeof(struct dfs_filesystem)); goto err1; } @@ -403,7 +403,7 @@ int dfs_unmount(const char *specialfile) rt_free(fs->path); /* clear this filesystem table entry */ - memset(fs, 0, sizeof(struct dfs_filesystem)); + rt_memset(fs, 0, sizeof(struct dfs_filesystem)); dfs_unlock(); rt_free(fullpath); @@ -590,7 +590,7 @@ int dfs_unmount_device(rt_device_t dev) rt_free(fs->path); /* clear this filesystem table entry */ - memset(fs, 0, sizeof(struct dfs_filesystem)); + rt_memset(fs, 0, sizeof(struct dfs_filesystem)); dfs_unlock(); |
