Update some comments; link counter can be uint8_t; Add a debug assertion.

This commit is contained in:
Gregory Nutt
2017-02-07 15:50:39 -06:00
parent cabc6cd413
commit 2d2fe301cb
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -129,6 +129,8 @@ static inline int statpseudo(FAR struct inode *inode, FAR struct stat *buf)
return -ELOOP;
}
DEBUGASSERT(buff->st_count > 0); /* Check for unsigned integer overflow */
/* stat() the target of the soft link. */
ret = stat_recursive((FAR const char *)inode->u.i_link, buf);