mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
tmpfs: Fix tmpfs_foreach recursively removing files in directories
Fixes #912
This commit is contained in:
parent
e479a97aec
commit
1dcf2c7ca3
1 changed files with 1 additions and 1 deletions
|
|
@ -1322,7 +1322,7 @@ static int tmpfs_foreach(FAR struct tmpfs_directory_s *tdo,
|
|||
* action will be to delete the directory.
|
||||
*/
|
||||
|
||||
ret = tmpfs_foreach(next, tmpfs_free_callout, NULL);
|
||||
ret = tmpfs_foreach(next, callout, arg);
|
||||
if (ret < 0)
|
||||
{
|
||||
return -ECANCELED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue