Add an assertion

This commit is contained in:
Gregory Nutt 2016-07-15 17:47:00 -06:00
parent 6a75f2df89
commit bcb6095f1f

View File

@ -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