[components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap

This commit is contained in:
guozhanxin 2018-09-20 12:03:29 +08:00
parent 51729e6a7c
commit 42d181307e
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ struct dfs_ramfs* dfs_ramfs_create(rt_uint8_t *pool, rt_size_t size)
/* initialize ramfs object */ /* initialize ramfs object */
ramfs->magic = RAMFS_MAGIC; ramfs->magic = RAMFS_MAGIC;
ramfs->memheap.parent.type = RT_Object_Class_MemHeap | RT_Object_Class_Static;
/* initialize root directory */ /* initialize root directory */
memset(&(ramfs->root), 0x00, sizeof(ramfs->root)); memset(&(ramfs->root), 0x00, sizeof(ramfs->root));