mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-14 00:43:14 +00:00
testing/fstest: Don't reuse the deleted name
to simplify the root cause analysis Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
1187351144
commit
7c4ddaeede
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ static bool fstest_checkexist(FAR struct fstest_filedesc_s *file)
|
|||
|
||||
for (i = 0; i < CONFIG_TESTING_FSTEST_MAXOPEN; i++)
|
||||
{
|
||||
if (!g_files[i].deleted && &g_files[i] != file &&
|
||||
if (&g_files[i] != file && g_files[i].name &&
|
||||
strcmp(g_files[i].name, file->name) == 0)
|
||||
{
|
||||
ret = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue