Skip to content

Commit 3c3006e

Browse files
CopilotJohnAmadis
andcommitted
Improve variable naming in is_file() function
Co-authored-by: JohnAmadis <17320783+JohnAmadis@users.noreply.github.com>
1 parent 9670969 commit 3c3006e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/dmdevfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,10 +971,10 @@ static bool is_file(const char* path)
971971
}
972972

973973
// Try to open as directory - if it succeeds, it's a directory, not a file
974-
void* dir = Dmod_OpenDir(path);
975-
if (dir != NULL)
974+
void* dir_handle = Dmod_OpenDir(path);
975+
if (dir_handle != NULL)
976976
{
977-
Dmod_CloseDir(dir);
977+
Dmod_CloseDir(dir_handle);
978978
return false; // It's a directory
979979
}
980980

0 commit comments

Comments
 (0)