diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/fat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index a2677124ff..3e43e1c787 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -1343,8 +1343,8 @@ int fat_create_dir(char* name, | |||
1343 | 1343 | ||
1344 | LDEBUGF("fat_create_dir(\"%s\",%x,%x)\n",name,newdir,dir); | 1344 | LDEBUGF("fat_create_dir(\"%s\",%x,%x)\n",name,newdir,dir); |
1345 | 1345 | ||
1346 | memset(newdir, sizeof(struct fat_dir), 0); | 1346 | memset(newdir, 0, sizeof(struct fat_dir)); |
1347 | memset(&dummyfile, sizeof(struct fat_file), 0); | 1347 | memset(&dummyfile, 0, sizeof(struct fat_file)); |
1348 | 1348 | ||
1349 | /* First, add the entry in the parent directory */ | 1349 | /* First, add the entry in the parent directory */ |
1350 | rc = add_dir_entry(dir, &newdir->file, name, true, false); | 1350 | rc = add_dir_entry(dir, &newdir->file, name, true, false); |