nuttx/tools/rp2040
aineoae86-sys 95e4561145 tools: rp2040: Drop uninitialized name length check
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>
2026-07-10 12:39:44 +08:00
..
.gitignore tools: Add Raspberry Pi Pico post build tool to create uf2 binary 2021-02-20 03:45:24 -08:00
Config.mk tools/rp{2040,23xx}: Ensure that picotool is found or built 2025-08-22 00:30:28 +08:00
make_flash_fs.c tools: rp2040: Drop uninitialized name length check 2026-07-10 12:39:44 +08:00