+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:
patacongo 2007-06-11 22:47:43 +00:00
parent 13bd9989b2
commit 445da7f795
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. * the tree semaphore and that would result in deadlock.
*/ */
inode->i_crefs++; inode->i_crefs += 2;
inode->i_crefs++;
dir->u.psuedo.fd_next = inode; /* This is the next node to use for readdir() */ dir->u.psuedo.fd_next = inode; /* This is the next node to use for readdir() */
/* Flag the inode as belonging to the psuedo-filesystem */ /* Flag the inode as belonging to the psuedo-filesystem */