mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
fs: procfs: Skip to register for meminfo if the name is NULL
Summary: - This commit skips to register for meminfo if the name is NULL Impact: - None Testing: - Tested with sabre-6quad:netknsh (umm_heap will be updated later) Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
63cd44e5e1
commit
27985fa639
1 changed files with 5 additions and 0 deletions
|
@ -578,6 +578,11 @@ static int meminfo_stat(FAR const char *relpath, FAR struct stat *buf)
|
|||
|
||||
void procfs_register_meminfo(FAR struct procfs_meminfo_entry_s *entry)
|
||||
{
|
||||
if (NULL == entry->name)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
entry->next = g_procfs_meminfo;
|
||||
g_procfs_meminfo = entry;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue