Oops. Wrong arguments to memset(). Thanks to Mike Wilson for pointing that out.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4274 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a4c67dcab5
commit
da115da486
1 changed files with 2 additions and 2 deletions
|
@ -1343,8 +1343,8 @@ int fat_create_dir(char* name,
|
|||
|
||||
LDEBUGF("fat_create_dir(\"%s\",%x,%x)\n",name,newdir,dir);
|
||||
|
||||
memset(newdir, sizeof(struct fat_dir), 0);
|
||||
memset(&dummyfile, sizeof(struct fat_file), 0);
|
||||
memset(newdir, 0, sizeof(struct fat_dir));
|
||||
memset(&dummyfile, 0, sizeof(struct fat_file));
|
||||
|
||||
/* First, add the entry in the parent directory */
|
||||
rc = add_dir_entry(dir, &newdir->file, name, true, false);
|
||||
|
|
Loading…
Reference in a new issue