mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Add an assertion
This commit is contained in:
@@ -260,6 +260,7 @@ int open(const char *path, int oflags, ...)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
fd = (int)OPEN_GETFD(ret);
|
fd = (int)OPEN_GETFD(ret);
|
||||||
|
DEBUGASSERT((unsigned)fd < (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user