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
@ -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…
Reference in New Issue
Block a user