Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dmdevfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ dmod_dmfsi_dif_api_declaration( 1.0, dmdevfs, int, _readdir, (dmfsi_context_t ct
// Extract basename from the full path for the directory entry
read_base_name(driver->path, entry->name, sizeof(entry->name));

dmdrvi_stat_t stat;
dmdrvi_stat_t stat = {0};
int res = driver_stat(driver, driver->path, &stat);
if (res != 0)
{
Expand All @@ -716,7 +716,7 @@ dmod_dmfsi_dif_api_declaration( 1.0, dmdevfs, int, _readdir, (dmfsi_context_t ct
}

entry->size = stat.size;
entry->attr = stat.mode;
entry->attr = stat.mode & ~DMFSI_ATTR_DIRECTORY;
}
else
{
Expand Down
Loading