mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +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);
|
||||
DEBUGASSERT((unsigned)fd < (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user