test close < 0, from Marco Wenzel

This commit is contained in:
Matt Johnston 2017-10-18 22:41:27 +08:00
parent dd8988220e
commit fa3b0dd3ca

View File

@ -506,7 +506,7 @@ out:
void m_close(int fd) { void m_close(int fd) {
int val; int val;
if (fd == -1) { if (fd < 0) {
return; return;
} }