9
0
Fork 0

+2 not ++ twice

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@290 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2007-06-11 22:47:43 +00:00
parent 1cb65a9f8d
commit 3e6dbe195f
1 changed files with 1 additions and 2 deletions

View File

@ -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 */