summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index 830e8d2..e5c5a31 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -506,7 +506,7 @@ out:
void m_close(int fd) {
int val;
- if (fd == -1) {
+ if (fd < 0) {
return;
}