Add an assertion
This commit is contained in:
parent
6a75f2df89
commit
bcb6095f1f
@ -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…
Reference in New Issue
Block a user