mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
tmpfs: Fix tmpfs_foreach recursively removing files in directories
Fixes #912
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user