mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 16:43:32 +08:00
Merge pull request #1828 from Guozhanxin/master
[components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap
This commit is contained in:
commit
5253d4e37d
@ -453,6 +453,7 @@ struct dfs_ramfs* dfs_ramfs_create(rt_uint8_t *pool, rt_size_t size)
|
||||
|
||||
/* initialize ramfs object */
|
||||
ramfs->magic = RAMFS_MAGIC;
|
||||
ramfs->memheap.parent.type = RT_Object_Class_MemHeap | RT_Object_Class_Static;
|
||||
|
||||
/* initialize root directory */
|
||||
memset(&(ramfs->root), 0x00, sizeof(ramfs->root));
|
||||
|
Loading…
x
Reference in New Issue
Block a user