mirror of
https://github.com/apache/nuttx.git
synced 2026-05-16 05:27:45 +08:00
5f92db54a6
Replace DEBUGASSERT checks with proper NULL pointer validation in getpid() and task_get_info() functions. Return IDLE_PROCESS_ID or -ESRCH on NULL conditions instead of asserting, improving robustness during early system startup and error conditions. Signed-off-by: hujun5 <hujun5@xiaomi.com>