mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 01:49:24 +08:00
scan_dir() checked name_len before assigning it. Directory entries already compute and validate strlen(a_dirent->d_name) before allocating the dir item, while the root path passed to scan_dir() is not encoded as a directory entry name. Remove the stale pre-opendir check so scan_dir() no longer branches on an uninitialized local variable. Generated-by: OpenAI Codex Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>