This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c4d3bb385d015369af8e67428c741e9709ec66c4 Author: buxiasen <[email protected]> AuthorDate: Mon Feb 17 23:36:57 2025 +0800 mmdump: fix pid ignored in foreach Should not set to 0 again, as already memset. Signed-off-by: buxiasen <[email protected]> --- mm/mm_heap/mm_memdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mm_heap/mm_memdump.c b/mm/mm_heap/mm_memdump.c index c29ad8d5579..0db564230ea 100644 --- a/mm/mm_heap/mm_memdump.c +++ b/mm/mm_heap/mm_memdump.c @@ -251,11 +251,11 @@ void mm_memdump(FAR struct mm_heap_s *heap, pid_t pid = dump->pid; memset(&priv, 0, sizeof(struct mm_memdump_priv_s)); + priv.dump.pid = pid; #ifdef CONFIG_MM_BACKTRACE_SEQNO if (dump->seqmin == 0 && dump->seqmax == 0) { - priv.dump.seqmin = 0; priv.dump.seqmax = ULONG_MAX; } else
