mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 08:53:15 +00:00
Add an assertion
This commit is contained in:
parent
6a75f2df89
commit
bcb6095f1f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue