summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r--firmware/drivers/fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 0c02c8224f..30d16f3666 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1698,8 +1698,8 @@ static int add_dir_entry(struct bpb *fat_bpb, struct fat_filestr *parentstr,
1698 int rc; 1698 int rc;
1699 1699
1700 unsigned char basisname[11], shortname[11]; 1700 unsigned char basisname[11], shortname[11];
1701 int n;
1702 int entries_needed; 1701 int entries_needed;
1702 int n = -1;
1703 unsigned long ucslen = 0; 1703 unsigned long ucslen = 0;
1704 1704
1705 if (is_dotdir_name(name) && (attr & ATTR_DIRECTORY)) 1705 if (is_dotdir_name(name) && (attr & ATTR_DIRECTORY))