summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/filesystem-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/filesystem-app.c')
-rw-r--r--firmware/target/hosted/filesystem-app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c
index d73704737a..bcc880eab0 100644
--- a/firmware/target/hosted/filesystem-app.c
+++ b/firmware/target/hosted/filesystem-app.c
@@ -474,7 +474,8 @@ bool app_dir_exists(const char *dirname)
474struct dirinfo dir_get_info(DIR *dirp, struct dirent *entry) 474struct dirinfo dir_get_info(DIR *dirp, struct dirent *entry)
475{ 475{
476 struct __dir *this = (struct __dir *)dirp; 476 struct __dir *this = (struct __dir *)dirp;
477 struct dirinfo ret = { .mtime = 0 }; 477 struct dirinfo ret = { .attribute = 0,
478 .mtime = 0 };
478 479
479 if (!this) 480 if (!this)
480 FILE_ERROR_RETURN(EBADF, ret); 481 FILE_ERROR_RETURN(EBADF, ret);