diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-10-18 22:41:27 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-10-18 22:41:27 +0800 |
commit | fa3b0dd3ca62309c7d786df849da31426348c0bf (patch) | |
tree | 9c584faaeb3cdbd31df1192526ddacaf115d47ad | |
parent | dd8988220e810385d17d16f897f24ce05c80df5f (diff) |
test close < 0, from Marco Wenzel
-rw-r--r-- | dbutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -506,7 +506,7 @@ out: void m_close(int fd) { int val; - if (fd == -1) { + if (fd < 0) { return; } |