summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-10-18 22:41:27 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-10-18 22:41:27 +0800
commitfa3b0dd3ca62309c7d786df849da31426348c0bf (patch)
tree9c584faaeb3cdbd31df1192526ddacaf115d47ad
parentdd8988220e810385d17d16f897f24ce05c80df5f (diff)
test close < 0, from Marco Wenzel
-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;
}