Skip to content

Commit df85c74

Browse files
AngryProtonRbb666
authored andcommitted
[FIX][DFSv2][ELMFAT]解决dfs_elm_unlink在FF_VOLUMES为1时赋值drivers_fn引用未定义变量导致编译报错的问题
1 parent 3a78e8e commit df85c74

File tree

1 file changed

+1
-1
lines changed
  • components/dfs/dfs_v2/filesystems/elmfat

1 file changed

+1
-1
lines changed

components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ int dfs_elm_unlink(struct dfs_dentry *dentry)
784784
rt_snprintf(drivers_fn, 256, "%d:%s", vol, dentry->pathname);
785785
#else
786786
const char *drivers_fn;
787-
drivers_fn = path;
787+
drivers_fn = dentry->pathname;
788788
#endif
789789

790790
result = f_unlink(drivers_fn);

0 commit comments

Comments
 (0)