mirror of
https://github.com/apache/nuttx.git
synced 2026-08-19 04:28:21 +00:00
+2 not ++ twice
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@290 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
13bd9989b2
commit
445da7f795
1 changed files with 1 additions and 2 deletions
|
|
@ -205,8 +205,7 @@ FAR DIR *opendir(const char *path)
|
|||
* the tree semaphore and that would result in deadlock.
|
||||
*/
|
||||
|
||||
inode->i_crefs++;
|
||||
inode->i_crefs++;
|
||||
inode->i_crefs += 2;
|
||||
dir->u.psuedo.fd_next = inode; /* This is the next node to use for readdir() */
|
||||
|
||||
/* Flag the inode as belonging to the psuedo-filesystem */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue